diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-13 17:43:17 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-13 17:43:17 +0200 |
commit | 227870a64f1eacbc13950256a05a2fab5c8c2a25 (patch) | |
tree | 1c3cae99e4c16fa8ae2fca6073a38bbf11104ac3 /app.py | |
parent | 9f7086628c58392b7bdc45f9f0994bfbd64b99c6 (diff) |
Linting and docstringing board/board.py
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |