One other win-check condition

This commit is contained in:
Kevin Lange 2017-01-18 22:14:41 +09:00
parent b535cf221d
commit 99515c8690

View File

@ -106,7 +106,7 @@ class MinesWindow(yutani.Window):
b.reveal()
if b.mines == 0:
n.extend([x for x in check_neighbor_buttons(b.row,b.col) if not x.revealed and not x in n])
self.check_win()
self.check_win()
self.field_size, self.mine_count = action
self.first_click = True