Add back the O turn check
This commit is contained in:
parent
1bf689951b
commit
fc7e4ec602
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ def hello():
|
|||
except ValueError:
|
||||
return ("Invalid board.", 400, {'Content-type': 'text/plain'})
|
||||
|
||||
#if not board.is_o_turn:
|
||||
# return ("It isn't O's turn.\n\n{}".format(board), 400, {'Content-type': 'text/plain'})
|
||||
if not board.is_o_turn:
|
||||
return ("It isn't O's turn.\n\n{}".format(board), 400, {'Content-type': 'text/plain'})
|
||||
|
||||
next_board = board.move()
|
||||
out = '''{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue