Battleship
Friday, July 11th, 2008 | Programs
For more including Author's Notes download the eBook pages with this program's code listing.
The game of Battleship is one that probably doesn’t require an introduction. Two teams each with 5 ships. The players place their ships on the board, hiding their locations from their enemies. Then each player takes turns firing at their opponent’s hidden ships. If you strike a hit you then know where a ship is and you can keep firing at it until it is sunk. The first player to locate and sink off of their enemies ships wins.
In this version you play against a computer opponent. But don’t worry, the computer never peeks.
Battleship is written by Joseph Larson based on a board game by Milton Bradley.
1 Comment to Battleship
Simple yet enjoyable. Also, i’ve beaten the computer. But it was a process of elimination and luck.
Leave a comment
Subscribe
Support Cymon's Games
Recent Comments
- Bill on Numbrix
- Joe on Should I do tutorials?
- Alan Monroe on Should I do tutorials?
- Alan Monroe on Should I do tutorials?
- Peter on StarTrek
- Joe on Others Teaching Programming
- Devin Watson on Others Teaching Programming
- Joe on Programming Math
















July 18, 2008