summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-12 09:21:04 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-12 09:21:04 +0200
commitb6c689abc6d5860671c45460a99b487eb6872e22 (patch)
treec834adbbdef5500bd39e3ee123acba3049317f34 /board
parentf3a475d4744c4c2b631c24f4875b5c845baa1f93 (diff)
Making checks that area about to be uncovered is not uncovered already.
Diffstat (limited to 'board')
-rw-r--r--board/board.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/board.py b/board/board.py
index 9666bad..3491c01 100644
--- a/board/board.py
+++ b/board/board.py
@@ -73,6 +73,8 @@ class Board():
area=area.union(self.collect_area(tx, ty, area))
return area
+ def get_mask(self, x, y):
+ return self.masked[x][y]
def make_guess(self, x, y):
if self.invalid_coordinates(x, y):