This project was designed as an exercise during my training at BeCode. I used Jasmine 3.6.0 to write and test the logic.
This project is a work in progress.
Design missing All the failing tests in Jasmine plus :
-
Can't figure out how to make the code wait for the user input from the prompt (always return
undefined
).
Temporary fix : user input prompt commented out, sample word "secret" hardcoded inside functionsetSecretWord
instead.
=> Maybe use a switch like here ? With a "" (no input) case, and a default case for everything else ? -
If I try to pass
secretWord
as an argument of the functionvalidateSecretWord
, the function returnsundefined
no matter what. No idea why.
Temporary (?) fix : no argument. -
"Start game now?" confirm box opens twice, no idea why.
- Code normalize.css jasmine 3.6.0
- Pictures
- Fonts
- Videos