Skip to content

uiyuvi/bowling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bowling

Bowling game in javascript constructed using TDD approach.

Rules of Bowling:

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

Getting started:

Inside this project, you can run some built-in commands:

npm start

Runs the app in development mode.
Open http://localhost:9000 to view it in the browser.

npm test

Runs the test.

npm run build

Builds the app for production to the dist folder in production mode

Code Commiting Guidelines:

Inspired from Udacity

  1.   chore: updating build tasks, package manager configs, initial commit, etc.. no production code change
    
  2.   docs: changes to documentation (Readme file)
    
  3.   feat: a new feature with test case
    
  4.   fix: a bug fix
    
  5.   style: formatting, missing semi colons, etc.. no code change
    
  6.   refactor: refactoring production code
    
  7.   test: Refactoring test; no production code change 
    

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published