From fc7e4ec602d80032eab600d37db2bc3696b7f414 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 30 Sep 2017 11:42:59 -0700 Subject: [PATCH] Add back the O turn check --- tictactoe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tictactoe.py b/tictactoe.py index 224b303..03cb0e1 100644 --- a/tictactoe.py +++ b/tictactoe.py @@ -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 = '''{}