From f9cb152cdbbc59764c4e4f2719ef0d4e554f33af Mon Sep 17 00:00:00 2001
From: structix
Date: Sun, 30 Jun 2019 23:11:02 +0200
Subject: [PATCH] Fixes
---
cgi-bin/uebung08/hangman.php | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/cgi-bin/uebung08/hangman.php b/cgi-bin/uebung08/hangman.php
index 18ce2a7..b135623 100644
--- a/cgi-bin/uebung08/hangman.php
+++ b/cgi-bin/uebung08/hangman.php
@@ -43,10 +43,16 @@ echo << 8 || 1 == 1) {
+if ($state == 1) {
+echo <<Gewonnen!
+END;
+}
+
+if ($errors > 8) {
$guessword = $_SESSION['toGuess'];
echo <<Das richtige Wort wäre $guessword gewesen!
+ Verloren. Das richtige Wort wäre $guessword gewesen!
END;
}