Number Game


This is a number guessing game.


^ is the sto arrow button above the on button.
:Lbl D
:ClLCD
:rand^X
:X*100>N
:round(N,0)>N
:ClLCD
:
:
:
:Disp "Welcome to the"
:Disp "number guessing"
:Disp "game!"
:Disp "by Tom Coats"
:Pause
:ClLCD:C=0
:Lbl A
:Disp "Enter your guess"
:Input "between 1-100
:",G
:While (G>100 or G<0)
:ClLCD
:Disp "Invalid Choice"
:Goto A
:End
:ClLCD
:While (G==N)
:C+1^C
:
:Disp "You win in ",C," tries."
:Goto B:End
:If (G>N)
:Then
:Disp "Too High"
:C+1^C:Goto A
:Else
:Disp "Too Low":C+1^C
:Goto A
:Lbl B
:Disp "Do you want"
:InpSt "play again:",E
:If (E=="Y" or E=="y")
:Then
:Goto D
:Else
:Disp "Thanks for playing"
:DispG
:Disp "www.geocities.com/"
:Disp "SunsetStrip/Show/"
:Disp "7251/"
:Pause
:ClLCD

© 1997 bckcoats@ix.netcom.com


This page hosted by GeoCities Get your own Free Home Page


1