A simple game of Battleship, written in NodeJs.
To edit and debug this project, you can use Visual Studio Code or any other suitable editor. You might want to install these extensions to better support this project in VSCode:
- Mocha Test Explorer https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-mocha-test-adapter
- Cucumber (Gherkin) Full Support https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
Install packages
npm installRun battleship
node index.jsExecute all tests
npm testExecute Mocha tests
mocha './**/*Tests.js'Execute Cucumber-js tests
./node_modules/.bin/cucumber-js .\GameController_ATDDTo run and test the project in a container, use these steps:
docker run -it -v ${PWD}:/battleship -w /battleship node bash
npm install
npm test
node index.js