Skip to content

Commit

Permalink
Update game.py
Browse files Browse the repository at this point in the history
  • Loading branch information
autodataming authored Mar 8, 2019
1 parent 10f256e commit 4647350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def has_a_winner(self):
n = self.n_in_row

moved = list(set(range(width * height)) - set(self.availables))
if len(moved) < self.n_in_row + 2:
if len(moved) < self.n_in_row *2-1:
return False, -1

for m in moved:
Expand Down

0 comments on commit 4647350

Please sign in to comment.