[Community Puzzle] Mirror Rotation - Puzzle discussion

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @Delicious31415,validated by @DeanTheMachine,@NicknamedTwice and @TBali.
If you have any issues, feel free to ping them.

Good fun puzzle.
Please note instruction

The mirrors should be listed in reading order.

had further description

(top to bottom, left to right)

in the contributions page (in case anyone else isn’t clear :grinning:)

FYI
If you solve this via DFS, then the last validator seems to be the only one that will catch you out for taking the last valid solution instead of the one with the least flips.
I was passing all test cases without ever reducing the the best flip count from INT_MAX.