summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-13 19:56:09 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-13 19:56:09 +0200
commit30ee34f106c5052cf0a60361d3220427b5753557 (patch)
treec0f7053390f86f08b904f2dde4c57bd69c698b6e /app.py
parent227870a64f1eacbc13950256a05a2fab5c8c2a25 (diff)
Fixing some types and linting tui/static.py and app.py.
Diffstat (limited to 'app.py')
-rw-r--r--app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.py b/app.py
index 2e2f538..c31627e 100644
--- a/app.py
+++ b/app.py
@@ -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