Celebrate then define

This commit is contained in:
2025-08-01 16:39:38 -04:00
parent 728de20948
commit c448a63b7c
+3 -1
View File
@@ -239,13 +239,15 @@ function shakeTiles(tiles) {
)
})
}
// IT'S RIGHT HERE YOU BLIND MOFO"
function checkWinLose(guess, tiles) {
if (guess === targetWord) {
showAlert("Congratulations, You win!", 5000)
danceTiles(tiles)
celebrateWithConfetti()
setTimeout(() => {
showWordDefinition(targetWord, true)
},3000)
stopInteraction()
return
}