Part One
Produce a solution to the bowling game kata using your favorite methods.Part Two
Changes in bowling alley technology are entering the market; the new hardware offers cheaper, efficient, environmentally friendly bowling.But there's a catch... the sensors on the new bowling alleys don't detect the number of pins knocked down by each roll, but instead the number that remain upright.
Without making any changes to the existing tests: create an implementation that correctly scores the games reported by the new bowling alleys.
Examples
A perfect game still consists of twelve throws, but when the ball knocks down all of the pins, the sensors report 0 rather than 10.Similarly, a "gutter game" has twenty throws, and the sensors report 10 for each throw.
A spare where 9 pins are first knocked down, and then 1, is reported as (1,0).
No comments:
Post a Comment