The first kata is the classic BowlingGame Kata from Uncle Bob.
Write a class named
Game
that has two methods
roll(pins : int)
is called each time the player rolls a ball. The argument is the number of pins knocked down.score()
: int is called only at the very end of the game. It returns the total score for that game.
Here is the original PowerPoint from Uncle Bob with the instructions including the solution steps. The PPT file also includes the rules for the scoring of a bowling game.