From: http://codingdojo.org/cgi-bin/index.pl/index.pl?KataBowling
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:
We will not check for valid rolls.
We will not check for correct number of rolls and frames.
We will not provide scores for intermediate frames.