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

https://github.com/iampeterbanjo/battleship

Battleship turn by turn game
https://github.com/iampeterbanjo/battleship

Last synced: 2 months ago
JSON representation

Battleship turn by turn game

Awesome Lists containing this project

README

        

# Battleship - a turn by turn game

[![Circle CI](https://circleci.com/gh/iampeterbanjo/battleship.svg?style=svg)](https://circleci.com/gh/iampeterbanjo/battleship)

[Play online](https://iampeterbanjo.github.io/battleship/)

## Rules
- There are two players: you vs the computer
- Each player has 1 battleship and 2 destroyers
- A battleship occupies 5 squares and a destroyer 4 squares on the grid
- Each player takes turns guessing the location of their opponents ships on the grid
- When a player hits a ship they get another turn
- Destroy all the computer's ships to win

## Development

- `npm install`
- `npm start`

## Testing

- `npm test`

## ISC License (ISC)

Copyright (c) 2016 year, Company or Person's Name peterbanjo at gmail dot com

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.