Files
basic-computer-games/31_Depth_Charge
Rob Miller 7f14b42c73 Depth Charge: use more idiomatic Ruby
Refactor the Depth Charge game (#31) to use more Ruby idioms, without
changing its structure, method names, etc.
2022-01-11 17:47:53 +00:00
..
2022-01-03 02:13:21 -05:00

Depth Charge

In this program you are captain of the destroyer USS Computer. An enemy submarine has been causing trouble and your mission is to destroy it. You may select the seize of the “cube” of water you wish to search in. The computer then determines how many depth charges you get to destroy the submarine.

Each depth charge is exploded by you specifying a trio of numbers; the first two are the surface coordinates (X,Y), the third is the depth. After each depth charge, your sonar observer will tell you where the explosion was relative to the submarine.

Dana Noftle wrote this program while a student at Acton High School, Acton, Massachusetts.


As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at http://www.vintage-basic.net/games.html