First and foremost, I would like to thank @VilBoub for creating this puzzle. I loved every bit of it.
It’s important to say that like any good puzzle it’s a rabbit hole (in the good sense). I was not familiar with the Hitori game, and found it fascinating to dive into it’s techniques and strategies.
Then I started solving the puzzle. The test cases are superb. They go from easy to hard (cases 1…4), but still doable using straight-forward simple computation.
Case 5 is different, and this is were the puzzle moves from medium/hard to very hard, and requires backtracking in order to arrive to the solution. It adds a whole new layer to the program. Beautiful.
The validation cases are also excellent, as they revealed I had a bug in one of my functions (after passing cases 1-5).
One funny thing to mention - I saw this puzzle in my notification and got interested, and didn’t realize it’s under the “Very hard”. So I was light-hearted when solving it, until I realized (in case 5) that things are not as easy as they seem
Hi #VilBoub ,
you should emprove the validator 5, since it is solvable with a code that doen’t take into account the rule: “all un-shaded squares create a single continuous area”.
If you want I can send you such code.
I managed to have a code that successfully passes the IDE tests. However it fails on the fith validator. Of course I don’t have a clue on what fails (and I promise I did not hardcoded anything!)
I probably do something wrong, that is not checked in the test cases. Could I share my code someway to see where my algorithm fails, and eventually improve the IDE test case?
Thanks for @VilBoub for all the interesting puzzles he posted.
For me these were the ‘low-hanging fruits’ to get the “Reach a 100% score on three very hard puzzles.” and “Reach a 100% score on three hard puzzles.” achievements.
With the same standard backtracking algorithm I could solve Hitori, Minesweeper, Dumbbells, Dominoes, n Queens, Sudoku and Mini Sudoku puzzles, with only minor modifications (to implement the game-specific rules). Many medium puzzles needed more time & effort than all these combined, at least for me.