Remove call to update_mine_counter() from the main loop
This commit is contained in:
parent
067a0d568c
commit
4e7d631e42
2
board.py
2
board.py
|
@ -34,6 +34,7 @@ class Board:
|
|||
self.mine_counter = self.game_font.render(str(mines), True, (255,0,0))
|
||||
self.counter_loc = self.mine_counter.get_rect()
|
||||
self.counter_loc.bottomleft = self.square_grid.topleft
|
||||
self.update_mine_counter()
|
||||
|
||||
# Places the timer
|
||||
self.timer = self.game_font.render("999", True, (255,0,0))
|
||||
|
@ -185,3 +186,4 @@ class Board:
|
|||
self.total_flags += 1
|
||||
elif square.is_questioned:
|
||||
self.total_flags -= 1
|
||||
self.update_mine_counter()
|
||||
|
|
Loading…
Reference in New Issue