Bowling game in javascript constructed using TDD approach.
A game of bowling consists of ten frames. In each frame, the bowler will have two chances to knock down as many pins as possible with their bowling ball.
If a bowler is able to knock down all ten pins with their first ball, he is awarded a strike.
If the bowler is able to knock down all 10 pins with the two balls of a frame, it is known as a spare.
Bonus points are awarded for both of these, depending on what is scored in the next 2 balls (for a strike) or 1 ball (for a spare).
If the bowler knocks down all 10 pins in the tenth frame, the bowler is allowed to throw 3 balls for that frame. This allows for a potential of 12 strikes in a single game, and a maximum score of 300 points, a perfect game.
Referred from: http://slocums.homestead.com/gamescore.html
Inside this project, you can run some built-in commands:
Runs the app in development mode.
Open http://localhost:9000 to view it in the browser.
Runs the test.
Builds the app for production to the dist
folder in production mode
Inspired from Udacity
-
chore: updating build tasks, package manager configs, initial commit, etc.. no production code change
-
docs: changes to documentation (Readme file)
-
feat: a new feature with test case
-
fix: a bug fix
-
style: formatting, missing semi colons, etc.. no code change
-
refactor: refactoring production code
-
test: Refactoring test; no production code change