Skip to content

code-workshops/tdd-bowling-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bowling Kata

Game Rules

  • Each game has 10 frames
  • Each frame has 2 turns to score 10 pins
  • Each frame has bonuses for strikes and spares
  • A spare is when all 10 pins are knocked down in 2 turns
  • A strike is when all pins are knocked down in 1 turn
  • The bonus for spares is equal to current frame (10 pins) plus the number of pins on the next roll.
  • The bonus for strikes is equal to the current frame plus the next 2 rolls.
  • In the 10th frame, if the player rolls a strike or spare, they get an extra roll for a maximum of 3.

Description

Use TDD to implement the game rules. Keep it as simple as possible.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published