From be50621a0f054e65e6d6ad215cdd6fdf3b644dec Mon Sep 17 00:00:00 2001 From: msnau <79276215+msnau@users.noreply.github.com> Date: Sun, 6 Sep 2026 17:52:30 +0200 Subject: [PATCH] =?UTF-8?q?Buchst=C3=A4bchen=20korrigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hangman.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hangman.py b/hangman.py index c1c5ea3..84b0deb 100644 --- a/hangman.py +++ b/hangman.py @@ -5,8 +5,6 @@ versuche = 7 ratewort = random.choice(woerter) -print(ratewort) - erraten = [] falsche_bs = [] tracker_fbs = 0 @@ -44,6 +42,10 @@ while versuche > 0: print("Den hast du schon (falsch) erraten, Kollege") continue + if len(nutzereingabe) != 1: + print("Bitte nur ein Buchstabe!") + continue + x = 0 richtig = False