Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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).
- Host: GitHub
- URL: https://github.com/kzaky/battleship-game
- Owner: kzaky
- Created: 2013-04-11T18:48:43.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-11T18:56:15.000Z (almost 12 years ago)
- Last Synced: 2024-11-14T22:15:40.325Z (2 months ago)
- Language: Java
- Size: 28.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files: