Guess the number game
by Daniel Wedge
*** MORE GAMES AND PROGRAMS FOR CASIO CALCULATORS AT ***
******** http://www.student.uwa.edu.au/~wedgey *********
You have to guess the number in the minimum number of tries. There are
lots of these sorts of games - you'll probably see this around a lot.
120 bytes.
Symbols used in this code:
-> assign key (the arrow key)
Ran# is the random number generator, found under math/prob on my 9700.
=> if/then, found under prog/rel on my calculator.
@ is the display symbol (the triangle under prog)
'GUESS
" "
"GUESS A NUMBER"
"FROM 0->100"
0 -> C
Int 100Ran# -> A
Lbl 0
? -> X
Isz C
Lbl 1
X "HIGHER"
X>A => "LOWER"
X=A => Goto 2
Goto 0
Lbl 2
"YAY"@
"TRIES:":C@