This commit is contained in:
2019-06-30 23:12:57 +02:00
parent f9cb152cdb
commit 39a14ad5a2

View File

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