Skip to content

uiyuvi/bowling-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bowling

Bowling game constructed using TDD approach in React.

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:

Get Started

npm install

Install all project dependencies

npm start

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

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

Code Commiting Guidelines:

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

Create React App

This project was bootstrapped with Create React App. You can find more information on how to perform common tasks here.

Publishing this in github pages

  1. Install gh-pages
    npm install gh-pages
  2. Add below scripts in package.json
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build" (build is directory generated as output)
  3. deploy in github pages
    npm run deploy

Contributing

This repository is to get use to TDD - Learning Purpose Only.

Releases

No releases published

Packages

No packages published