/battleships

Minimal implementation of popular battleship game using vanilla-javascript

Primary LanguageJavaScriptMIT LicenseMIT

Battleships Game

Version Documentation Maintenance License: MIT Twitter: VOkeugo

Netlify Status


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.

Basic Tests

Tests cover basic features to validate Computer AI player, Ship and Gameboard.

Technologies

  • JavaScript (ES6)
  • HMTL
  • SCSS
  • npm
  • Webpack 4

Usage

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.

Contributor(s)

Victor Okeugo

How to Contribute

  1. Fork it (https://github.com/johnsonsirv/battleships/fork)
  2. Create your working branch (git checkout -b [choose-a-name])
  3. Commit your changes (git commit -m 'what this commit will fix/add/improve')
  4. Push to the branch (git push origin [chosen-name])
  5. Create a new Pull Request

You can also create issues

License

This project is MIT licensed.