APPLE I GAME

1 post / 0 new
Toolkitman's picture
Offline
Last seen: 2 months 18 hours ago
Joined: Nov 21 2010 - 15:30
Posts: 249
APPLE I GAME

Hi There,
I have programmed an Apple I game, where you have to match the number that find the computer.

10 DIM F$(20)
20 INPUT "SHALL WE PLAY A GAME",F$
30 IF F$= "YES" THEN 60
40 PRINT "OK BYE BYE"
50 END
60 INPUT "YOUR NUMBER",A
70 B=RND(1000)
80 TAB 15 :PRINT "YOUR NUMBER IS:",A
90 TAB 15 : PRINT "COMPUTER NUMBER IS:",B
100 IF A=B THEN PRINT "YOU WIN!!!!!"
110 IF A<>B THEN PRINT "YOU LOSE"
120 END