Skip to content

ruiined/bowling-challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bowling Challenge in Ruby

Test codecov

Overview

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.

How to Install

  1. Clone the git repository to your machine
  2. cd bowling-challenge
  3. Run npm install

How to Run

cd src & node game.js:

  • const game = new Game;
  • game.rollPins(4) etc, as many times as you like
  • console.log(game.getScore()) to get frame scores in an array form
  • console.log(game.totalScore()) to get the total sum of the score

How to Test

  1. To get the test & coverage results: npm test -- --coverage
  2. To analyze the code: cd src & run: npx eslint game.js, npx eslint frame.js

Diagram

Bowling Scorecard Diagram

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 91.4%
  • Pug 4.7%
  • CSS 3.9%