aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--logic.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/logic.py b/logic.py
index 01956ee..4739f8c 100644
--- a/logic.py
+++ b/logic.py
@@ -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()