From 0db4a16c14475cb6ec830a19a1489c1bfeaccac2 Mon Sep 17 00:00:00 2001 From: RochoElLocho Date: Fri, 4 Aug 2023 10:23:55 +0200 Subject: [PATCH] spieler 2 gewinnt immer --- GUI.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GUI.py b/GUI.py index f153a8c..db64346 100644 --- a/GUI.py +++ b/GUI.py @@ -11,12 +11,12 @@ def ok(): if s1 == "s" and s2 == "p" or s1 == "p" and s2 == "r" or s1 == "r" and s2 == "s": - print("Spieler 1 hat gewonnen") - print("Spieler 1 hat :" "Punkte") + return messagebox.showinfo("Gewinner",f"Spieler 1 hat gewonnen") + else: - print("Spieler 2 hat gewonnen") - print("Spieler 2 hat", "Punkte") + return messagebox.showinfo("Gewinner",f"Spieler 2 hat gewonnen") +