Interview question of the issue #314 of rendezvous with cassidoo.
Make a "guessing game" where there is a target number, and as the user makes guesses, the output returns higher
or lower
until the user is correct.
Example usage:
Guess the number!
> 10
higher
> 20
higher
> 30
lower
> 25
higher
> 27
Correct! You won in 5 guesses!
Just pnpm i
to install all dependencies and then pnpm t
to run the tests!