(71B) Battelship Game for HP-71B
|
12-23-2013, 11:48 AM
(This post was last modified: 06-15-2017 01:39 PM by Gene.)
Post: #1
|
|||
|
|||
(71B) Battelship Game for HP-71B
Simple game of battleship where you and the computer have 10 ships located on a grid defined by the corners (1,1) and (100,100). The calculator will then prompt you for (X,Y) coordinates that should be in the range of (1,1) to (100,100). Each of you and the machine drop bombs at various locations in the game's grid. If the bomb is close enough to a ship, then the ship is hit. The first player that looses all 10 ships loses the game.
The program displays the coordinates of your bombing and it they are successful. Likewise, it displays where the machine strikes and the success of that strike. The listing below sets the game to play in automatic mode (i.e. the calculator plays both as itself and as you). To play in manual mode, set line 440 as DATA 0. The calculator will then prompt you for (X,Y) coordinates that should be in the range of (1,1) to (100,100). Each of you and the machine drop bombs at various locations in the game's grid. If the bomb is close enough to a ship, then the ship is hit. The first player that looses all 10 ships loses the game. The program displays the coordinates of your bombing and it they are successful. Likewise, it displays where the machine strikes and the success of that strike. Code: 10 REM SUB HUNT |
|||
03-12-2017, 03:16 PM
Post: #2
|
|||
|
|||
RE: Battelship Game for HP-71B
A friend of mine and were talking about the HP-71B and he mentioned it was a computer with 32K. That is about 16K short of my favorite computer, the Atari 800. So I said "Someone probably made a game on it even though the display is only one line of characters" And I was delighted to find this game to show what people will do.
Naturally would love to find other games, but might have to pull out my HP-71B (my friend claims he gave me one and I might still have it) and try this program out. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)