Is there a kata for the bowling game problem?

Is there a kata for the bowling game problem?

Here is a kata for the Bowling Game problem. I have broken it down into the same tiny little steps that I do when I demonstrate it. However, as is usual for a kata, I have left out most of the explanatory comments. A kata is meant to be memorized. Students of a kata study it as a form, not as a conclusion.

What did Uncle Bob’s bowling game kata teach me?

Someone mentioned Uncle Bob’s Bowling Game Kata to me a few days ago; it is apparently famous as a tutorial on object-oriented programming and test-driven development, though I had never heard of either Uncle Bob or his Bowling Game Kata.

How does a strike work in a bowling game?

A strike is when the player knocks down all 10 pins on his first roll. The frame is then completed with a single roll. The bonus for that frame is the value of the next two rolls. In the tenth frame a player who rolls a spare or strike is allowed to roll the extra balls to complete the frame.

What’s the best way to start a kata?

Move slowly and deliberately. DO NOT RUSH. A kata needs to seep into your bones, and this take time. There is also a preamble section entitled “A Quick Design Session”. This is part of the kata when demonstrating TDD to others, but is not part of the “Design Sense” of the kata itself.

How many pins are in a frame of bowling?

The game consists of 10 frames. In each frame the player has two rolls to knock down 10 pins. The score for the frame is the total number of pins knocked down, plus bonuses for strikes and spares. A spare is when the player knocks down all 10 pins in two rolls.

Is the kata meant to be memorized or studied?

A kata is meant to be memorized. Students of a kata study it as a form, not as a conclusion. It is not the conclusion of the kata that matters, it’s the steps that lead to the conclusion. If you want to lean to think the way I think, to design the way I design, then you must learn to react to minutia the way I react.