Site hosted by Angelfire.com: Build your free website today!

NUMBER GAME

(Back)
Email the author:REGGIE


The Number Game has always been my favorite way to waste time in math class. First I wasted some time making it, and then playing it, and then I modified it. I have also made a couple of versions of Number Game for on the computer for both in dos and Windows 95. I may release them on my page when I get the time. The '=>' is STO. 'random' can be found under Math; C PROB. The 'ClrT' can be found in PRGM; C SCRN. If you want the exclaimation mark '!' for in 'YOU WON': MATH; C PROB.

Print "GUESS BETWEEN 0 AND A"
Input A
int (A*random )=>C
0=>D
Label G
Print "GUESS A NUMBER"
D+1=>D
Input B
If B>CGoto L
If B<CGoto H
If B=CGoto W
Label L
ClrT
Print "GUESS LOWER"
Goto G
Label H
ClrT
Print "GUESS HIGHER"
Goto G
Label W
ClrT
Print "YOU WON!"
Print "NUMBER OF GUESSES:"
Print D
End