A test for first roll 0, second roll 10 in the same frame

Hello friends,

After finishing my own solution I realized that none of the test cases consider a condition where your first roll is 0 and second roll is 10, which is a spare not a strike.

Personally this caused me to re evaluate my code to make it work that way, and I am pretty sure that some of you friends may have this condition missing in your codes.

Here is an example test scenario including these condition that i used.

    int[] rolls = { 3, 4, 10, 0, 10, 8, 2, 5, 4, 2, 3, 0, 0, 0, 10, 10, 4, 6, 10 };
    int[] totalS = { 7, 27, 45, 60, 69, 74, 74, 94, 114, 134 };

Hope this will be useful, cheers.

Privacy & Terms