Do not play moves if a winner exists already

This commit is contained in:
Eryn Wells 2017-09-30 14:04:08 -07:00
parent a6d779c9fe
commit d285d8087e

View file

@ -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):