diff options
| author | mryouse | 2021-06-13 01:55:35 +0000 |
|---|---|---|
| committer | mryouse | 2021-06-13 01:55:35 +0000 |
| commit | dccfae58636fbbefe9102041b05e1d1d2a0aaa8d (patch) | |
| tree | d3169c22571f594078c0fbd38ac1a0ae915c8123 /logic.py | |
| parent | 0fd069b7a577651ce9fa7cbbc6b9ccb4d3c408ed (diff) | |
Diffstat (limited to 'logic.py')
| -rw-r--r-- | logic.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -39,7 +39,9 @@ class MinesweeperLogic: HEIGHT = 0 BOMBS = 0 SEED = 0 - MOVES = [] + + def __init__(self): + self.MOVES = [] def do_all_moves(self): for move in self.MOVES: @@ -106,6 +108,7 @@ class MinesweeperLogic: self.WIDTH = width self.HEIGHT = height self.BOMBS = bombs + self.MOVES = [] self.setup() self.do_first_move() |
