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; }