From 30ee34f106c5052cf0a60361d3220427b5753557 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sat, 13 Jan 2024 19:56:09 +0200 Subject: Fixing some types and linting tui/static.py and app.py. --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app.py') 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 -- cgit v1.2.3