summaryrefslogtreecommitdiff
path: root/app.py
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 /app.py
parentf3a475d4744c4c2b631c24f4875b5c845baa1f93 (diff)
Making checks that area about to be uncovered is not uncovered already.
Diffstat (limited to 'app.py')
-rw-r--r--app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index e3c6dd4..bf2a159 100644
--- a/app.py
+++ b/app.py
@@ -14,7 +14,7 @@ while True:
t.draw_matrix(b.get_view(),-1,-1)
print("LOPETUS!")
break
- if not b.make_guess(x, y):
+ if b.get_mask(x,y) and not b.make_guess(x, y):
t.draw_matrix(b.get_view(),-1,-1)
print("KUOLEMA!")
break