Add back the O turn check

This commit is contained in:
Eryn Wells 2017-09-30 11:42:59 -07:00
parent 1bf689951b
commit fc7e4ec602

View file

@ -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 = '''{}