Skip to content

Instantly share code, notes, and snippets.

@MatteoPierro
Created February 7, 2018 08:10
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 MatteoPierro/cb0e3c33e497c4c01a9f80288c8f5e81 to your computer and use it in GitHub Desktop.
Save MatteoPierro/cb0e3c33e497c4c01a9f80288c8f5e81 to your computer and use it in GitHub Desktop.

Bowling Rules

Each game, or “line” of bowling, includes ten turns, or “frames” for the bowler.

  • In each frame, the bowler gets up to two tries to knock down all the pins.
  • If in two tries, he fails to knock them all down, his score for that frame is the total number of pins knocked down in his two tries.
  • If in two tries he knocks them all down, this is called a “spare” and his score for the frame is ten plus the number of pins knocked down on his next throw (in his next turn).
  • If on his first try in the frame he knocks down all the pins, this is called a “strike”. His turn is over, and his score for the frame is ten plus the simple total of the pins knocked down in his next two rolls.
  • If he gets a spare or strike in the last (tenth) frame, the bowler gets to throw one or two more bonus balls, respectively. These bonus throws are taken as part of the same turn. If the bonus throws knock down all the pins, the process does not repeat: the bonus throws are only used to calculate the score of the final frame.
  • The game score is the total of all frame scores.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment