From d285d8087e0a9c5866b9665715be49913a7c4d63 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 30 Sep 2017 14:04:08 -0700 Subject: [PATCH] Do not play moves if a winner exists already --- tictactoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tictactoe.py b/tictactoe.py index 08ba506..db29436 100644 --- a/tictactoe.py +++ b/tictactoe.py @@ -37,7 +37,7 @@ class Board: @property def is_o_turn(self): x_ahead_one = (self.num_x == self.num_o + 1) - return x_ahead_one and not self.full + return x_ahead_one and not self.full and self.winner is None @property def next_player(self):