Battleships game of strategy built with modern vanilla Javascript. It is played on ruled grids (paper or board) on which each player's fleet of ships (including battleships) are marked. The locations of the fleets are concealed from the other player. Players alternate turns calling "shots" at the other player's ships, and the objective of the game is to destroy the opposing player's fleet.
This project was completed in line with standards provided by Microverse.
See Live Demo
Tests cover basic features to validate Computer AI player
, Ship
and Gameboard
.
- JavaScript (ES6)
- HMTL
- SCSS
- npm
- Webpack 4
Clone the repository to your local machine
$ git clone https://github.com/johnsonsirv/battleships.git
cd into the directory
$ cd battleships
$ npm install
$ npm run test
$ npm run build
$ npm run serve
Open
http://127.0.0.1:8080
using your favourite broswer.
- Github: @johnsonsirv
- Twitter: @vokeugo
- Email: okeugo.victor.c@gmail.com
- Fork it (https://github.com/johnsonsirv/battleships/fork)
- Create your working branch (git checkout -b [choose-a-name])
- Commit your changes (git commit -m 'what this commit will fix/add/improve')
- Push to the branch (git push origin [chosen-name])
- Create a new Pull Request
You can also create issues
This project is MIT licensed.