Skip to content

CraigRisiAG/bowlinggame

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bowling Game Kata

The initial code for this repo was pulled from a repo by Simon Berner, with only modifications made to the Unit tests portions for the sake of a workshop on unit testing.

Intention

The intention of this small project is practicing unit testing by implementing the CodeKata Bowling Game.

My slightly adapted bowling game description

  1. The game consists of 10 frames (rounds). In each frame a player has two rolls with a bowling ball to knock down a maximum of 10 pins. The score per frame is the total number of knocked down pins plus bonuses if the player does a spare or a strike.
  2. A spare is when the player knocks down all 10 pins with two rolls in a frame. The bonus for that frame is the score of the next first roll.
    2.1 The maximum score for a frame is 20. 10 scores for the spare in the actual frame and 10 for the strike in the next frame.
  3. A strike is when the player knocks down all 10 pins with the first roll in a frame. The bonus for that frame is the score of the next two rolls.
    3.1 The maximum score for a frame is 30. 10 scores for the strike in the actual frame and 20 scores for the strikes of the next two frames.
  4. In the 10th frame, a player who rolls a spare or a strike has a second (for strike) or third (for spare) extra roll to finish that frame. (No more than three rolls are allowed in the 10th frame).

Information sources

Setup a Gradle with JUnit5

Coding Kata

Possible constraints

Taking Baby Steps

Getting the project code

You can get the code by hitting:

git clone https://github.com/CraigRisiAG/bowlinggame.git

About

The Bowling Game Kata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%