getting the player' move def getplayermove(boardplayertile) let the player type in their move returns the move as [xy(or returns the strings 'hintsor 'quit' digits to ' split(the getplayermove(function is called to let the player type in the coordinates of their next move (and check if the move is validthe player can also type in 'hintsto turn hints mode on (if it is offor off (if it is onthe player can also type in 'quitto quit the game the digits to constant variable is the list [' '' '' '' '' '' '' '' 'the digits to constant is used because it is easier to type than the entire list you can' use the isdigit(method because that would allow and to be enteredwhich are not valid coordinates on the board while true print('enter your moveor type quit to end the gameor hints to turn off/on hints ' move input(lower( if move ='quit' return 'quit if move ='hints' return 'hintsthe while loop will keep looping until the player has typed in valid move lines to check if the player wants to quit or toggle hints modeand return the string 'quitor 'hints'respectively the lower(method is called on the string returned by input(so the player can type 'hintsor 'quitbut still have the command understood the code that called getplayermove(will handle what to do if the player wants to quit or toggle hints mode digits to if len(move= and move[ in digits to and move[ in int(move[ ] int(move[ ] if isvalidmove(boardplayertilexy=falsecontinue elsebreak post questions to