while true if turn ='player' player' turn if showhints validmovesboard getboardwithvalidmoves(mainboardplayertile drawboard(validmovesboard else drawboard(mainboard showpoints(playertilecomputertile move getplayermove(mainboardplayertile if move ='quit' print('thanks for playing!' sys exit(terminate the program elif move ='hints' showhints not showhints continue else makemove(mainboardplayertilemove[ ]move[ ] if getvalidmoves(mainboardcomputertile=[] break else turn 'computer else computer' turn drawboard(mainboard showpoints(playertilecomputertile input('press enter to see the computer\' move ' xy getcomputermove(mainboardcomputertile makemove(mainboardcomputertilexy if getvalidmoves(mainboardplayertile=[] break else turn 'player display the final score drawboard(mainboard scores getscoreofboard(mainboard print(' scored % points scored % points (scores[' ']scores[' ']) if scores[playertilescores[computertile] print('you beat the computer by % pointscongratulations!(scores[playertilescores[computertile])post questions to