#NEWLINE# def getPlayerMove( board ) : #NEWLINE# #INDENT# move = ' ' #NEWLINE# while ( ( move not in '1 2 3 4 5 6 7 8 9' . split ( ) ) or ( not isSpaceFree ( board , int ( board ) ) ) ) : #NEWLINE# #INDENT# print ( 'What is your next move? (1-9)' ) #NEWLINE# move = input ( ) #NEWLINE# #UNINDENT# return int ( move )