[Community Puzzle] Simplified Monopoly™ Turns Prediction

Hi guys,

I’m having trouble with the puzzle Simplified Monopoly with Kotlin or even Java. I have a success score of 88% on this puzzle as there is one test that doesn’t pass when submitting even if all my tests pass when I’m coding.
I’m pretty sure I didn’t hardcode anything though.

Am I the only one to have some trouble on this matter ?

Which validator have you failed to pass?

So when testing before submitting, everything passes.

After submitting, all tests pass except the “Big Run”.

OK. You may PM me your code and I’ll take a look.

1 Like

I finished but I was really struggled trying to debug the “Big Run” validator.

I can share my logs of status of players after each turn to facilitate debugging for other people:

Dice1/Dice2/Player/Position/IsInJail
5 5 Thimble 10 False
3 2 Thimble 15 False
4 2 Wheelbarrow 6 False
5 1 Lantern 6 False
3 6 CoinPurse 9 False
2 2 ClothesIron 4 False
1 1 ClothesIron 6 False
3 3 ClothesIron 10 True
4 6 Cat 10 False
5 5 Thimble 25 False
1 2 Thimble 28 False
4 5 Wheelbarrow 15 False
3 3 Lantern 12 False
6 5 Lantern 23 False
4 1 CoinPurse 14 False
1 1 ClothesIron 12 False
2 2 Cat 14 False
3 3 Cat 20 False
5 6 Cat 31 False
1 1 Thimble 10 True
4 4 Wheelbarrow 23 False
3 3 Wheelbarrow 29 False
3 4 Wheelbarrow 36 False
2 1 Lantern 26 False
6 4 CoinPurse 24 False
1 3 ClothesIron 16 False
1 4 Cat 36 False
3 1 Thimble 10 True
6 6 Wheelbarrow 8 False
5 5 Wheelbarrow 18 False
2 2 Wheelbarrow 10 True
2 5 Lantern 33 False
1 5 CoinPurse 10 True
3 3 ClothesIron 22 False
4 4 ClothesIron 10 True
1 1 Cat 38 False
4 4 Cat 6 False
1 3 Cat 10 False
3 1 Thimble 10 True
4 2 Wheelbarrow 10 True
5 4 Lantern 2 False
3 6 CoinPurse 10 True
1 2 ClothesIron 10 True
2 2 Cat 14 False
6 6 Cat 26 False
6 6 Cat 10 True
3 3 Thimble 16 False
3 3 Wheelbarrow 16 False
5 5 Lantern 12 False
1 1 Lantern 14 False
3 3 Lantern 10 True
2 2 CoinPurse 14 False
4 4 ClothesIron 18 False
1 1 Cat 12 False
3 3 Thimble 22 False
5 5 Thimble 32 False
6 2 Thimble 0 False

It looks like your log is for the “Big Run” test (Test 8), instead of for the “Big Run” validator (Validator 8). And your log seems all correct to me.

Please note that tests and validators are similar but different. That means even if your code passes a test, it may not pass the corresponding validator if your code contains a bug which is relevant to the validator only.