Guess the number - tweettweetjam entry
#tweettweetjam 3 entry, the game thinks of a number 1 to 99 and you have to guess the number.
If the number is incorrect the game tells you if the number is lower of higher than your guess.
Controls:
- Right/Left = Add or subtract 1 from your guess number
- Up/Down = Add or subtract 10 from your guess number
- (X) Button = Submit your guessing
You can guess as many times as you want, best score is the lowest number of tries.
Highscore is 1 but you that's a 1 in 99 chance of happening ;)
Status | Released |
Platforms | HTML5 |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | Justburner |
Made with | PICO-8 |
Tags | PICO-8, tweettweetjam |
Download
Download
guessthenumber.p8 17 kB
Comments
Log in with itch.io to leave a comment.
First try!
WINNER!
When I tried, I got "nope, it's higher than 18" and "nope, it's lower than 19" :(
"rnd" returns a float, so you should use "n=ceil(rnd(100))" instead of "n=rnd(99)+1".
Actually i did had "flr(rnd()*99)+1" in there before but due to optimizing for size i've rewrote that and somehow expected rnd with argument returned an integer... ops! Thanks for letting me know... it's fixed now. (i didn't used ceil(rnd(100)) because that returns 0 for absolute 0.00)