The renowned Battleship board game for a single player vs computer
The renowned Battleship board game for a single player vs computer.
The ships are randomly placed upon page load or reload and the game begins as soon as you click on the opponent's board. You can move your ships by dragging them to a different position before the game starts. A hit is colored red and a miss is colored grey.
The app is deployed on Vercel (formely Zeit), and can be accessed through the following link, here.
git clone https://github.com/adriaanbd/jsbattlehsip.git
cd jsbattleship
$ npm install
$ npm run start
Open up your browser and go to http://127.0.0.1:8080/dist/
$ npm run test
Test Suites: 3 passed, 3 total
Tests: 28 passed, 28 total
Snapshots: 0 total
Time: 2.369s
Ran all test suites matching /.\/tests/i.
Contributions, issues and feature requests are welcome!
Feel free to check the issues page, here.