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.
The intention of this small project is practicing unit testing by implementing the CodeKata Bowling Game.
- 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.
- 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. - 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. - 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).
- The bowling game kata in Java
- Uncle Bob: The Bowling Game Kata
- Why I don't like the Bowling Game Kata
- The Bowling Game Kata description (This might be the better description)
Taking Baby Steps
You can get the code by hitting:
git clone https://github.com/CraigRisiAG/bowlinggame.git