diff --git a/game.js b/game.js index d2f1c65..85318ff 100644 --- a/game.js +++ b/game.js @@ -32,7 +32,11 @@ function checkGridRow() { getGridRow(row).items.forEach(item => rowWord += item.letter) console.log(rowWord) - if (!wordlist.includes(rowWord)) return + if (!wordlist.includes(rowWord)) { + body.classList.add("incorrect") + setTimeout( () => body.classList.remove("incorrect"), 500) + return + } var correct_letters = 0 var dedupword = word