Bowling challenge provided by Makers. This challenge was attempted in Ruby before here.
Intending to make the web app for the scorecard. However, at this point, only the express skeleton is there.
- Clone the git repository to your machine
cd bowling-challenge
- Run
npm install
cd src
& node game.js
:
const game = new Game;
game.rollPins(4)
etc, as many times as you likeconsole.log(game.getScore())
to get frame scores in an array formconsole.log(game.totalScore())
to get the total sum of the score
- To get the test & coverage results:
npm test -- --coverage
- To analyze the code:
cd src
& run:npx eslint game.js
,npx eslint frame.js