Skip to content

GJMcGowan/bowling-challenge

 
 

Repository files navigation

Build Status

Task:

Count and sum the scores of a bowling game for one player (in JavaScript).

My Solution:

I used two class constructors to make a frame and a bowling object in different files.

To use it, you make a bowling object and use object.bowl(score) to record what your bowl scored. If you want to know your total score you run finalScore. If you want to know the score of every frame you have bowled, you run allFramesScore.

Testing was done using jasmine. To run tests:

  • Run bundle install in the root directory
  • Run rackup and navigate to localhost:9292/SpecRunner.html

To view the website (not functional yet!) clone the repo, run bundle install in the cloned directory and then run rackup.

Ongoing

Creation of a nice user interface in jquery/css. Refactoring, for example to prevent Frames from being completely coupled to Bowling.

About

Calculate Scores for Ten Pin Bowling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 95.8%
  • HTML 2.8%
  • CSS 1.1%
  • Ruby 0.3%