https://github.com/vedhavyas/battleship
BattleShip Game
https://github.com/vedhavyas/battleship
battleship battleship-game
Last synced: about 1 month ago
JSON representation
BattleShip Game
- Host: GitHub
- URL: https://github.com/vedhavyas/battleship
- Owner: vedhavyas
- License: apache-2.0
- Created: 2017-02-24T18:59:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T06:26:06.000Z (about 8 years ago)
- Last Synced: 2025-01-31T07:33:06.461Z (3 months ago)
- Topics: battleship, battleship-game
- Language: Go
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#BattleShips
* Battleship is a game played between 2 players. Each player will be initialised with an M * M
grid with S number of the ships placed at specified positions on the grid.* One battleship occupies a single position on the Grid.
* Objective of the game is to destroy opponent's ships. Each player will
be given T number of missiles.* Based on hits/misses of a missile on the opponent, either of the player might be vistorious or the game might end as a draw.
##Installation
```
go get -u github.com/vedhavyas/battleship/cmd/battleship/...
cd $GOPATH/bin
./battleship --help
```##Input
Program requires an `Input file` and an `Output file`.###Input File
Input file should be of the following format1. GridSize (0