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. --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.py') 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 -- cgit v1.2.3