Game Logic done

This commit is contained in:
2021-10-19 16:20:26 -03:00
parent 9425e27bd3
commit 9f9cf73bf3
13 changed files with 154 additions and 30 deletions

View File

@@ -0,0 +1,8 @@
const checkDefeat = (setEndOfGame, hangmanFrame) => {
if (hangmanFrame >= 5) {
setEndOfGame('Defeat')
}
}
export default checkDefeat