This project is based on the original game battleship. A simple online two person strategy game. This version is played between a single player and a random computer advesary.
Check out the live demo here
A user is initially guided to place their attack ships on the board either manually or automatically. this can be done along both axis. The computer's ships are placed automatically as well.
The user and the opponent can then take turns clicking on each other's boards trying to figure out where the other's ships are in order to deliver an attack.
Successfully hitting and sinking the opponents' ships results in a victory.
- Clone the repository in your desired directory
git clone https://github.com/edgarmuyomba/battleship.git
- Enter the created folder
battleship
using the terminal - Install the required dependencies
npm install
- Run the demo and access it on localhost:8080
npm start
- html, css, javascript
- webpack