[Community Puzzle] 10 pin Bowling Scores

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @MxCollard,validated by @ByteWolf,@radioctiv and @java_coffee_cup.
If you have any issues, feel free to ping them.

Great puzzle, I had a lot of fun :slight_smile: trying to solve it.

I need a hint - my solution is not passing validator 3 and its not hard coded solution :slight_smile: @MxCollard could you maybe point me in the right direction?

Check these 10th frames:

X1/

8/X

I tested 10th round scoring with following data:

            c1 = "X1/"
            c2 = "8/X"
            c3 = "XX7"
            c4 = "8/2"

Seems to calculate the score right but still I cannot get 100% on this puzzle.

Which validator(s) are you failing?

I was failing Validator 3, but now I get 100% =)

I am having the same problem. I am stuck at validator 3.

Try this (not actual validator, but close)

5
32 7/ 6/ X 2/ X 1/ 11 1/ X1/
X X X X 8/ X 8/ 52 X 71
7/ -/ 5/ 72 7/ 22 6/ -7 7/ --
X 8/ 1/ X 1- X -9 81 2/ 13
1/ 1/ 5/ 2/ 3/ 5/ 5/ X X 8/X

Expected output:

5 21 41 61 81 101 112 114 134 154
30 60 88 108 128 148 163 170 188 196
10 25 42 51 63 67 77 84 94 94
20 31 51 62 63 82 91 100 111 115
11 26 38 51 66 81 101 129 149 169

For the validator 4 it’s wrong. Why?

Difficult to tell. You may PM me your code and I’ll take a look.

Here are some additional cases for debugging (which have helped @Boulib and @Leonard ):

Input:

1
X X X X X X X X X XX9

Output:

30 60 90 120 150 180 210 240 270 299

Input:

1
X X X X X X X X X X72

Output:

30 60 90 120 150 180 210 240 267 286

Input:

1
32 7/ 6/ X 2/ X 1/ 11 1/ X-/

Output:

5 21 41 61 81 101 112 114 134 154
1 Like

For me case 4 fails after submitting, but all testcases are successfull and also those two extra cases. Any suggestions?

Thanks for checking my code and providing me with a test case which helped me find the error in my code @5DN1L Appreciate it!

1 Like