From b6c689abc6d5860671c45460a99b487eb6872e22 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Fri, 12 Jan 2024 09:21:04 +0200 Subject: Making checks that area about to be uncovered is not uncovered already. --- board/board.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board') 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): -- cgit v1.2.3