if the player typed in the string 'hintsfor their movethen getplayermove(would have returned the string 'hintsin that caseyou want to turn hints mode on (if it was offor off (if it was onthe showhints not showhints assignment statement on line handles both of these casesbecause not false evaluates to true and not true evaluates to false then the continue statement moves the execution to the start of the loop (turn has not changedso it will still be the player' turnotherwiseif the player didn' quit or toggle hints modeline calls makemove(to make the player' move on the board make the player' move if getvalidmoves(mainboardcomputertile=[]break elseturn 'computerafter making the player' moveline calls getvalidmoves(to see if the computer could make any moves if getvalidmoves(returns blank listthen there are no more valid moves that the computer could make in that caseline breaks out of the while loop and ends the game otherwiseline sets turn to 'computerthe flow of execution skips the else-block and reaches the end of the while-blockso execution jumps back to the while statement on line this timehoweverit will be the computer' turn running the computer' turn elsecomputer' turn drawboard(mainboardshowpoints(playertilecomputertileinput('press enter to see the computer\' move 'xy getcomputermove(mainboardcomputertilemakemove(mainboardcomputertilexyafter printing out the board with drawboard()also print the current score with call to showpoints(on line line calls input(to pause the script while the player can look at the board this is much like how input(was used to pause the program in the jokes instead of using print(post questions to