Skip to content

dranidis/tdd-bowlingscore-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDD workshop exercise - Bowling score

Scoring Rules

  • There are 10 turns called frames. Each frame begins with 10 pins, and the bowler gets up to two tries to knock them all over.
  • One point is scored for each pin that is knocked over, and when fewer than all ten pins are knocked down in two rolls in a frame (an open frame), the frame is scored with the total number of pins knocked down.
  • Strike: When all ten pins are knocked down on the first roll, the frame receives ten pins plus the next two rolls (not frames!). A strike in the tenth (final) frame receives two extra rolls as a bonus.
  • Spare: When the second roll of a frame knocks down all pins, the frame receives ten pins plus the next roll. A spare in the tenth (final) frame receives a third roll as a bonus.
  • Bonus pins: No additional rolls are received for a strike/spare in the bonus balls.

Requirements

  • Given the number of pins you knock down each time you roll, calculate the total score so far.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages