Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
A jam submission

Guess the number - tweettweetjam entryView game page

A mini-game of guessing a number.
Submitted by Justburner — 5 days, 8 hours before the deadline
Add to collection

Play game

Guess the number - tweettweetjam entry's itch.io page

How many characters did you use?
557

Include your code here, if you'd like to show it off!
b=btnp t=0 g=1 s="" e="i'm thinking a number, 1 to 99\nd-pad=select, ❎=guess" n=flr(rnd(99))+1::_::cls() ?"guess the number",32,40,9 ?"< >",54,48,5 if (g<10) then ?"0"..g,58,48,7 else ?g,58,48,7 end ?e,0,56,3 ?s,0,62,8 if (w) then ?"play again? 🅾️",36,62,10 if (b(4)) run() else if (b(0)) g-=1 if (b(1)) g+=1 if (b(2)) g+=10 if (b(3)) g-=10 g=mid(g,1,99)if b(5)then if (t%11==0)s=s.."\n" t+=1 if n==g then e="correct! won in "..t.." guesses" w=1 else s=s..g.." "e="nope, it's lower" if (n>g) e="nope, it's higher" e=e.." than "..g end end end flip() goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

Heh, good ol' number guessin'!

Submitted (1 edit)

Binary search - the game

Like the simplicity and colourful texts. well done