This commit is contained in:
structix committed 2019-06-30 22:53:02 +02:00
1 parent 94f5328569
commit 1d2170647f
3 files changed
+2 -3

No files matched your search

Binary file not shown.
+1 -2
View File
@@ -6,7 +6,6 @@ require_once(__DIR__ . "/hangman_lib.php");
session_start();
initGame();
echo "INIT";
//header("Location: hangman.php");
header("Location: hangman.php");
?>
+1 -1
View File
@@ -68,7 +68,7 @@ function guessLetter($letter) {
$newMask = $_SESSION['mask'];
$wordcontainsletter = false;
for ($i = 0; $i < count($guessword); $i++) {
if ($guessword[$i] === $letter) {
if ($guessword[$i] == $letter) {
$newMask[$i] = $letter;
$wordcontainsletter = true;
}