From 1fcf01152da981fa46229ceb3e67d724f140b6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sp=C3=A1=C4=8Dil?= Date: Fri, 26 Jun 2026 20:00:30 +0200 Subject: [PATCH] =?UTF-8?q?feature/exit:=20lou=C4=8D=C3=ADc=C3=AD=20hl?= =?UTF-8?q?=C3=A1=C5=A1ka=20a=20konec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 0e32b2e..d2f916d 100644 --- a/main.py +++ b/main.py @@ -266,6 +266,11 @@ def game(data: tuple): print("Díky za hru a zase příště.") break + elif data[0] == "exit": + clear() + print("Hra byla předčasně ukončena. Snad se zase brzy uvidíme.") + break + def main(): clear() print("Vítejte ve hře v kostky!")