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
qtd = vetor indicando quantas vezes os pontos desta rodada serão contados, inicialmente = 1. Se houver: