Skip to content

brenoreis/ten-pin-bowling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Ten Pin Bowling scoring

An application that takes a string of space separated numbers from 0 to 10 and calculates what that would be as a score in ten pin bowling (hints on how to score in bowling are here: http://www.bowling2u.com/trivia/game/scoring.asp).

If a final score cannot be determined from the input then method should return the "current" score (i.e. assumes any remaining bowls scored 0).

Include unit tests and post code to a publicly accessible code repository.

#Example inputs and outputs

"1 2 3 4" -> 10

"9 1 9 1" -> 29

"1 1 1 1 10 1 1" -> 18

"10 10 10 10 10 10 10 10 10 10 10 10" -> 300

About

Ten Pin Bowling scoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages