summaryrefslogtreecommitdiff
path: root/board/board.py
diff options
context:
space:
mode:
Diffstat (limited to 'board/board.py')
-rw-r--r--board/board.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/board.py b/board/board.py
index 3491c01..23dfa79 100644
--- a/board/board.py
+++ b/board/board.py
@@ -85,8 +85,9 @@ class Board():
print("Ruutu on jo avattu", file=stderr)
return False
+ self.masked[x][y] = 0
+
if self.tiles[x][y] == 9:
- self.masked[x][y] = 0
return False
if self.tiles[x][y] == 0:
@@ -94,8 +95,6 @@ class Board():
for dx, dy in ( (0,-1), (-1,0), (0,0), (1,0), (0,1) ):
if not self.invalid_coordinates(cx+dx, cy+dy):
self.masked[cx+dx][cy+dy] = 0
- else:
- self.masked[x][y] = 0
return True