From 9fa679d916a4f17b6abb7bba80afea017eae5853 Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 04:06:31 +0000 Subject: [PATCH] enhancement(lint): Fix lint errors for src/modules/hangman.ts Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- src/modules/hangman.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/hangman.ts b/src/modules/hangman.ts index 6517467..8e2b777 100644 --- a/src/modules/hangman.ts +++ b/src/modules/hangman.ts @@ -1020,7 +1020,7 @@ export function onGuess( word, stage, }; - + if (guessedLetters.join("") === word) return { message: `\`\`\`${buildBoard(stage)}\`\`\`\n\nYou have won! \`${guessedLetter}\`\n${hideWord(word, guessedLetters)}`, @@ -1040,7 +1040,7 @@ export function onGuess( stage, }; } else { - stage++ + stage++; return { message: `\`\`\`${buildBoard(stage)}\`\`\`\n\nYou guessed \`${guessedLetter}\`\n${hideWord(word, guessedLetters)}`, guessedLetters,