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
- Host: GitHub
- URL: https://github.com/iampeterbanjo/battleship
- Owner: iampeterbanjo
- Created: 2016-01-21T11:18:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T07:13:58.000Z (over 9 years ago)
- Last Synced: 2025-01-21T03:12:26.891Z (4 months ago)
- Language: JavaScript
- Size: 82 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Battleship - a turn by turn game
[](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.