Skip to content

Instantly share code, notes, and snippets.

@draffauf
Created August 6, 2015 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save draffauf/29915480b81500cd64b4 to your computer and use it in GitHub Desktop.
Save draffauf/29915480b81500cd64b4 to your computer and use it in GitHub Desktop.
Bowling Score Feature Request
Dear Sir or Madam,
I write to you today because I am looking for someone to create an application to calculate my bowling score as I am an avid bowler, but write all my scores down on paper. I am looking for a more automated solution and you seem like the best candidate to give me the solution I am looking for.
Here are my requests:
1) Initially, I will provide my last bowling game data in which you can use to setup your data structure.
2) I would like for this data to be printed out in a manner that I am used to seeing when scoring bowling.
3) As a bonus, after you get your calculations correct, I would love for some way for the system to allow me to enter in my scores on each frame I bowl so that I can take this app with me.
Below is my data for my last game. Please be wary as I may not have entered in all the data appropriately as my old age is starting to show.
Frame 1: 4, 3
Frame 2: X
Frame 3: 5, 5
Frame 4: 2, 1
Frame 5: 7, 4
Frame 6: X
Frame 7: X
Frame 8: 0, 0
Frame 9: 2, 8
Frame 10: 5, 5, 4
Total: 121
Simple bowling rules:
Spare: 10 pts + score of next roll
Strike: 10 pts + sum of score of next two rolls
10th Frame: Total number of pins knocked down for all rolls (spare/strikes do not give any extra points)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment