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

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

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 format

1. GridSize (0