Assignment 3
Assignment 3
Assignment 3 (& 4). Due Wed 3 April 2013, 11:59 pm. Submit on Avenue all files in one zip file. This assignment is to build a computer version of a popular two-player game Battleships. The following is an example of the paper/pen version of the game. Each player positions their fleet of ships on the primary grid and keeps their location secret. Once play starts, each player has a turn to fire at the enemy ships. This is done by specifying a grid location B4, E9, etc. If a ship is located at that location, the owner of the ship indicates a hit. Otherwise the owner indicates a miss. Each salvo fired is recorded on the grid as a hit or miss. If all the squares on a ship have been hit, the owner indicates that the ship has been sunk. The first player to sink all the other players ships wins the game. The example shows the number of ships in a fleet and the size of each ship (in squares).
Page 1
Page 2