-
Notifications
You must be signed in to change notification settings - Fork 4
Rules
This game is based on the classical Battleship game rules. There are many flavors of this game, so we summarize the rules that apply in this implementation.
-
The grid size is 10 x 10.
-
Before the game begins, each player's ships are randomly arranged on the grids. Each ship occupies a number of consecutive squares on the grid, arranged either horizontally or vertically. There must not be directly adjacent to each other (i.e. at least one water cell has to be between ships).
-
The following table contains the ships that are placed on each player's grid:
| Class of ship | Size |
|---|---|
| Carrier | 5 |
| Battleship | 4 |
| Cruiser | 3 |
| Submarine | 3 |
| Destroyer | 2 |
-
After the ships have been positioned, the game proceeds in a series of rounds. In each round, each player takes a turn to announce a target square in the opponent's grid which is to be shot at. The opponent announces whether or not the square is occupied by a ship.
-
When all of the squares of a ship have been hit, the ship's owner announces the sinking of the ship. If all of a player's ships have been sunk, the game is over and their opponent wins. If all ships of both players are sunk by the end of the round, the game is a draw.