Count and sum the scores of a bowling game for one player (in JavaScript).
A bowling game consists of 10 frames in which the player tries to knock down the 10 pins. In every frame the player can roll one or two times. The actual number depends on strikes and spares. The score of a frame is the number of knocked down pins plus bonuses for strikes and spares. After every frame the 10 pins are reset.
In order to run the Jasmine tests, run the following code:
git clone https://github.com/TimRobinson1/bowling-challenge.git
cd bowling-challenge
open SpecRunner.html
Run open index.html
on the command line and start bowling!