Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kzaky/battleship-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 player’s ships wins the game. The example shows the number of ships in a fleet and the size of each ship (in squares).
https://github.com/kzaky/battleship-game

Last synced: 10 days ago
JSON representation

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 player’s ships wins the game. The example shows the number of ships in a fleet and the size of each ship (in squares).

Awesome Lists containing this project