Update
This commit is contained in:
1 parent
94f5328569
commit
1d2170647f
3 files changed
+2
-3
No files matched your search
Binary file not shown.
@@ -6,7 +6,6 @@ require_once(__DIR__ . "/hangman_lib.php");
|
||||
session_start();
|
||||
|
||||
initGame();
|
||||
echo "INIT";
|
||||
//header("Location: hangman.php");
|
||||
header("Location: hangman.php");
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user