From 227870a64f1eacbc13950256a05a2fab5c8c2a25 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sat, 13 Jan 2024 17:43:17 +0200 Subject: Linting and docstringing board/board.py --- app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 25dedeb..2e2f538 100644 --- a/app.py +++ b/app.py @@ -12,17 +12,17 @@ while True: action, x, y = t.matrix_selector(b.get_view(), x, y) match action: case Action.QUIT: -# t.draw_matrix(b.get_view(),-1,-1) + # t.draw_matrix(b.get_view(),-1,-1) print("LOPETUS!") break case Action.OPEN: - if b.get_mask(x,y) and not b.make_guess(x, y): - t.draw_matrix(b.get_view(),-1,-1) + if b.get_mask(x, y) and not b.make_guess(x, y): + t.draw_matrix(b.get_view(), -1, -1) print("KUOLEMA!") break elif b.is_winning(): - t.draw_matrix(b.get_view(),-1,-1) + t.draw_matrix(b.get_view(), -1, -1) print("VOITTO!") break case Action.FLAG: - b.flag_tile(x,y) \ No newline at end of file + b.flag_tile(x, y) -- cgit v1.2.3