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

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");
?>

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