APPLE II SHALL WE PLAY A GAME

4 posts / 0 new
Last post
Toolkitman's picture
Offline
Last seen: 2 days 16 hours ago
Joined: Nov 21 2010 - 15:30
Posts: 249
APPLE II SHALL WE PLAY A GAME

This is the version of my SHALL WE PLAY A GAME, that was born in INTEGER BASIC for APPLE 1 revised for the APPLESOFT APPLE II.
20 INPUT "SHALL WE PLAY A GAME: ";F$
30 IF F$ = "YES" THEN 60
50 PRINT "OK BYE BYE"
50 END
60 INPUT "YOUR NUMBER: ";A
70 B = INT (99 * RND (1) + 1)
80 HTAB 15: PRINT "YOUR NUMBER IS:",A
90 HTAB 15: PRINT "COMPUTER NUMBER IS:",B
100 IF A = B THEN PRINT "YOU WIN!!!!!"
110 IF A < > B THEN PRINT "YOU LOSE"
120 END

Offline
Last seen: 2 days 16 hours ago
Joined: Jun 5 2008 - 07:26
Posts: 475
Re: APPLE II SHALL WE PLAY A GAME

This is a simplified version of HI-LO - published in David Ahl's BASIC Computer Games. Usually you get X number of attempts before the game tells you that you lost.

regards,
Mike Willegal

Toolkitman's picture
Offline
Last seen: 2 days 16 hours ago
Joined: Nov 21 2010 - 15:30
Posts: 249
Re: APPLE II SHALL WE PLAY A GAME

This is totally new to me Mike, thank you to have let me know!

:O

Offline
Last seen: 1 year 5 months ago
Joined: May 27 2013 - 13:01
Posts: 849
Re: APPLE II SHALL WE PLAY A GAME

I wrote a program like this called, "Gambler".

You could start with any amount of money and set the odds you want and then you just tried to increase your money in the game.

There used to be a type in program called, "snail race" and I tried to combine it with Gambler but I did not have the programming capability to do it.

If I had done it, it would have been very cool, maybe it would be on Asimov by now.

Log in or register to post comments