(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 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(71B) Battelship Game for HP-71B - Namir - 12-23-2013 11:48 AM
RE: Battelship Game for HP-71B - DoctorClu - 03-12-2017, 03:16 PM
|
User(s) browsing this thread: 1 Guest(s)