Count and sum the scores of a bowling game for one player (in JavaScript).
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.
Creation of a nice user interface in jquery/css. Refactoring, for example to prevent Frames from being completely coupled to Bowling.