Skip to content

Commit

Permalink
Merge pull request #84 from autodataming/patch-1
Browse files Browse the repository at this point in the history
Update game.py
  • Loading branch information
junxiaosong authored Mar 20, 2019
2 parents 10f256e + 4647350 commit a2555b2
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 a2555b2

Please sign in to comment.