BASIC Time Travel
Thursday, April 4, 2013
CLS
10 PRINT “Welcome to my guessing game! I bet you can’t guess the number I’m thinking of! It’s between 1 and 10!”
20 RANDOMIZE TIMER
x% = (RND * 10) + 1
30 INPUT “What is your guess >”, guess%
IF guess@ > x% THEN GOTO 40
IF guess@ < x% THEN GOTO 50
IF guess@ = x% THEN GOTO 60
40 PRINT “Nope! That’s too high!”
GOTO 30
50 PRINT “Nope!” That’s too low!”
GOTO 30
60 PRINT “Uhhhhh. That’s not right. Uhhhh, hold on a second…”
GOTO 20

Comments
Comments are closed.