First time posting here and I'm really, really hoping this is the community I've been looking for.
I'm developing a game, right now I'm in the middle of designing levels as the core mechanics have already been laid out in code. While designing levels I noticed that I could easily add some puzzles because the code was already there.
I've thought about a kind of puzzle that I've seen in many games but I don't know the name so google didn't really helped me.
To make it short you got multiple buttons, every button controls the rotation of some platforms.
In my case, as you can see in the image below:
All the rotations are clockwise, green is the final path, yellow dots are the rotation pivots
- Button 1 (B1) controls the rotation of P1, P2 and P3 increasing it of 45 degrees
- Button 2 (B2) rotates by 90 degrees P2 and P3
- Button 3 (B3) rotates by 90 degrees P1 and P2
Pressing 2 times B1, 2 times B2 and 3 times B3 solves the puzzle.
I don't know if this is the optimal solution and the design of this puzzle was based on mere luck.
What I'm asking here, hoping to find an answer, is if there is some algorithm for this kind of puzzles, some books or resources to learn about the design, because I really enjoy the touch that it gives to the game and would like to explore this puzzle world to find new solutions.
Thanks in advance, hope everything was clear as English is not my first language!