[Community Puzzle] Messed up mosaics

Thanks for the feedback!

1 Like

For me all test cases were succesfull but validator 5 failed.

The issue was that I was not handling a case with the wrong tile at the end of the row correctly. Maybe this will help someone else one day :slight_smile:

You can send your code, I might try it and send back what’s wrong.

Thanks for your offer! Like I mentioned I was able to figure it out, apparently validator 5 has a wrong tile at the end of the row and there’s not case which has this. My code was not handling a wrong tile at the end of the row correctly.

I had some work to solve cases 6 and 7 but I finally did it, I loved this challenge!

This one seemed fun and intersting at first. But it didn’t last long :slight_smile:
I quickly faced an issue : all the tests passed, but one or two validators didn’t. It was quite frustrating as I could only try hard by submiting successive refactoring to validators (and there is tempos and captchas to protect against spam submission, which is normal).
“Fun” thing : I could have 1/ every validator but “4-tiles pattern, aligned” ou 2/ every validator but “Wavy pattern”, by comenting/uncomenting a bloc in my python script.
It’s a pity, it seems to me that this “easy” problem lacks some relevant tests in the IDE to code a correct solution.

you should think about your own test cases(in this puzzle it is possible) where your code will fail then fix a problem and submit a solution.

and yes? pretests not tests all possible situations but let be honest in puzzles where create your own tests as easy as here it is not a problem, and it is a good practice before solving real world problems where you can have no test cases available be default at all

For those having issues with some validators, any solution trying to mathematically calculate the expected tile using (y * N + x) % len(p) is doomed to fail because it assumes a rigid geometry, wwhere the mosaic can actually be laid out in any arbitrary 2d alignment (straight, diagonal, checkerboard etc.). Just a heads up.

All tests and all validator pass but Validator 6 (and test 6 is ok)…
It is very frustrating not to have feedback of what may be wrong :frowning:

Hint: Validator 6 (Stagger Fever) uses the same pattern as Test 6. Based on that you may try creating some custom cases for debugging.

Thanks !
Claude helped me found a line that didn’t work on my code, if this can help someone else:
for pattern _~#~ : ~#~_~#~_~#~_~#~_~#~_~#~_~#~_~#~_~#X_

1 Like

Validator 4 doesn’t pass for me, I’m really clueless…

1 Like

Regarding Validator 4, do these previous comments offer any clues or insights that might help you?
Comment 1
Comment 2

sometime a wrong first tile may pass my “start line pattern checker”, this validator did it.
The problem is that a found a “trick” (if wrong_x == 1 → wrong_x = 0) to dodge this case, but this trick should not pass the puzzle, but is does, they’re is a lack of validators ^^

An another Validator to counter this trick should be like:

pattern: ##//
wrong line: ///##//##//

1 Like