Skip to content

Instantly share code, notes, and snippets.

@Cst2989
Last active October 22, 2021 09:41
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 Cst2989/d35b17aaa16b2ea5d3cf1181f3b61f29 to your computer and use it in GitHub Desktop.
Save Cst2989/d35b17aaa16b2ea5d3cf1181f3b61f29 to your computer and use it in GitHub Desktop.
Inputs for Bowling Kata
const input = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; // output = 20
const inputWithStrike = [
10, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
]; // output = 30
const inputWithConsecutiveStrikes = [
10, 0, 10, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
]; // output = 49
const inputWithPerfectScore = [
10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 10, 10,
]; // output = 300
const inputWithNormalThrows = [
5, 4, 8, 2, 10, 0, 10, 0, 1, 0, 9, 1, 0, 10, 10, 0, 6, 4, 7, 3, 10,
]; // output = 149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment