diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-13 19:56:09 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-13 19:56:09 +0200 |
commit | 30ee34f106c5052cf0a60361d3220427b5753557 (patch) | |
tree | c0f7053390f86f08b904f2dde4c57bd69c698b6e /app.py | |
parent | 227870a64f1eacbc13950256a05a2fab5c8c2a25 (diff) |
Fixing some types and linting tui/static.py and app.py.
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,3 +1,4 @@ +""" app.py - pääohjelma """ from board.board import Board from tui.tui import Tui, Action @@ -12,7 +13,6 @@ 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) print("LOPETUS!") break case Action.OPEN: @@ -20,7 +20,7 @@ while True: t.draw_matrix(b.get_view(), -1, -1) print("KUOLEMA!") break - elif b.is_winning(): + if b.is_winning(): t.draw_matrix(b.get_view(), -1, -1) print("VOITTO!") break |