http://inventwithpython.com/chapter10.html
여기서 나오는건데
def isSpaceFree(board, move):
# Return true if the passed move is free on the passed board.
return board[move] == ' '
def getPlayerMove(board):
# Let the player type in his move.
move = ' '
while move not in '1 2 3 4 5 6 7 8 9'.split() or not isSpaceFree(board, int(move)):
print('What is your next move? (1-9)')
move = input()
return int(move)
여기서 while문에 함수 isSpaceFree(board, int(move)):가 오는걸 어케해석해야대나요?
한번도 배운적이 없는데 나오니까 이해가 안대네요
# Return true if the passed move is free on the passed board - dc App
파이죧을 왜 배우냐; 차라리 자바나 자바스크립트를 배워라