这是indexloc提供的服务,不要输入任何密码
Skip to content

yasuf/battleship-nodejs

 
 

Repository files navigation

Build status

Battleship NodeJs

A simple game of Battleship, written in NodeJs.

Getting started

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:

Run locally

Run battleship

node index.js

Execute tests

Execute all tests

npm test

Execute Mocha tests

mocha './**/*Tests.js'

Execute Cucumber-js tests

./node_modules/.bin/cucumber-js .\GameController_ATDD

Docker

To 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

About

Battleship case study for NodeJs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.8%
  • Gherkin 2.2%