false 'isdigit(false 'helloisdigit(false ' isdigit(true both move[ isdigit(and move[ isdigit(must be true for the whole condition to be true the final part of line ' condition calls the isvalidmove(function to check if the xy coordinates exist on the board if the entire condition is trueline returns two-integer list of the xy coordinates otherwisethe execution loops and the player will be asked to enter coordinates again asking the player to play again def playagain() this function returns true if the player wants to play againotherwise it returns false print('do you want to play again(yes or no)' return input(lower(startswith(' 'the playagain(function is similar to the playagain(functions in previous printing the game instructions for the player def showinstructions() print('''instructions you are the captain of the simona treasure-hunting ship your current mission is to find the three sunken treasure chests that are lurking in the part of the ocean you are in and collect them to playenter the coordinates of the point in the ocean you wish to drop sonar device the sonar can find out how far away the closest chest is to it for examplethe below marks where the device was droppedand the ' represent distances of away from the device the ' represent distances of away from the device post questions to