[Home]KataBowling

FrontPage | RecentChanges | Preferences

Difference (from prior major revision) (no other diffs)

Changed: 14c14
* In each frame, the bowler gets up to two tries to knock down all the pins.[Black Leather Jackets]
* In each frame, the bowler gets up to two tries to knock down all the pins.

Changed: 39,50c39
KataBowlingByAndreasLarsson
[compare and contrast essay] writing.
[paper writing services]
[compare health insurance]
[online website design]
[web design]
[logo design]
[flyer design]
[free website design]
[criação de sites]
[niteroi]
[desentupidora sp]
KataBowlingByAndreasLarsson

This description is based on that at www.xprogramming.com/xpmag/acsBowling.htm

Problem Description

Create a program, which, given a valid sequence of rolls for one line of American Ten-Pin Bowling, produces the total score for the game. Here are some things that the program will not do:

Depending on the application, this might or might not be a valid way to define a complete story, but we do it here for purposes of keeping the kata light. I think you'll see that improvements like those above would go in readily if they were needed.

We can briefly summarize the scoring for this form of bowling:

More info on the rules at: www.topendsports.com/sport/tenpin/scoring.htm

Clues

What makes this game interesting to score is the lookahead in the scoring for strike and spare. At the time we throw a strike or spare, we cannot calculate the frame score: we have to wait one or two frames to find out what the bonus is.

Suggested Test Cases

Comments from those who have mastered this Kata

Write some thoughts here about what you have learnt from this Kata. You don't have to post all the code of your solution - I think the solution in itself is less interesting than the path you took to get there and what decisions you made. Just seeing the code won't necessarily help me to reproduce it for myself. So in this section various people might go through the main parts of the problem and how they tackled them, what design ideas were discarded, and which order the test cases were implemented in.

KataBowlingByAndreasLarsson


FrontPage | RecentChanges | Preferences
Edit text of this page | View other revisions
Last edited July 31, 2010 9:57 pm by 188-221-1-167.zone12.bethere.co.uk (diff)
Search: