Bowling game constructed using TDD approach in React.
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:
Install all project dependencies
Runs the app
Open http://localhost:3000 to view it in the browser.
In order to run in different port please refer top answer from stack overflow
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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
- tyle: formatting, missing semi colons, etc.. no code change
- refactor: refactoring production code
- test: Refactoring test; no production code change
This project was bootstrapped with Create React App. You can find more information on how to perform common tasks here.
- Install gh-pages
npm install gh-pages - Add below scripts in package.json
"predeploy": "npm run build",
"deploy": "gh-pages -d build" (build is directory generated as output) - deploy in github pages
npm run deploy
This repository is to get use to TDD - Learning Purpose Only.