Fixes
This commit is contained in:
@@ -76,7 +76,7 @@ function guessLetter($letter) {
|
||||
$_SESSION['mask'] = $newMask;
|
||||
|
||||
//if the guessword doesn't contain the letter increment errorCount
|
||||
if (!$wordcontainsletter) {
|
||||
if (!$wordcontainsletter && $_SESSION['errorCount'] < 10) {
|
||||
$_SESSION['errorCount'] = $_SESSION['errorCount'] + 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user