Last active
October 22, 2021 09:41
-
-
Save Cst2989/d35b17aaa16b2ea5d3cf1181f3b61f29 to your computer and use it in GitHub Desktop.
Inputs for Bowling Kata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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