Back to General discussions forum
When I look at my answer compared to the expected, I see the mistake, but when I look at the data, it would appear that the expected is wrong.
For input data set three (for instance), the roll is a "big-straight", but the expected is saying it's a "small-straight". Am I missing something?
Expected answer was:
big-straight three small-straight pair two-pairs full-house three small-straight three pair pair pair yacht pair big-straight small-straight yacht pair small-straight small-straight three big-straight small-straight pair small-straight two-pairs big-straight yacht yacht pair small-straight
Your answer was:
big-straight three big-straight pair two-pairs full-house three big-straight three pair pair pair yacht pair big-straight big-straight yacht pair big-straight big-straight three big-straight big-straight pair big-straight two-pairs big-straight yacht yacht pair big-straight
Your input data:
31
2 3 4 5 6
3 3 6 2 3
2 3 4 5 1
4 2 3 1 1
1 1 3 3 6
4 3 4 3 3
5 2 6 5 5
2 3 4 5 1
4 4 6 4 3
6 5 4 6 3
1 5 2 1 3
3 1 2 5 5
1 1 1 1 1
6 5 6 1 3
2 3 4 5 6
2 3 4 5 1
5 5 5 5 5
1 3 6 2 1
2 3 4 5 1
2 3 4 5 1
4 2 2 2 3
2 3 4 5 6
2 3 4 5 1
2 4 1 6 6
2 3 4 5 1
1 6 2 6 1
2 3 4 5 6
5 5 5 5 5
4 4 4 4 4
4 1 1 6 3
2 3 4 5 1
Big straight - numbers from 2 to 6
Small straight - numbers from 1 to 5
Wow, I feel foolish. I was working on the idea that a big-straight was 1-6 and small was either 1-5 or 2-6. I totally missing the different explanation in the directions.
Thanks
And I still didn't say that right. I was thinking...
Big = 1, 2, 3, 4, 5 or 2, 3, 4, 5, 6 Small = 1, 2, 3, 4 or 2, 3, 4, 5 or 3, 4, 5, 6
It's this pattern I'm used to from playing Yahtzee a lot in the past.