Do not play moves if a winner exists already
This commit is contained in:
parent
a6d779c9fe
commit
d285d8087e
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue