PaperBugs is a puzzle where you control bugs on a grid by writing a simple program. Each bug executes the same program step-by-step to reach their targets. The key challenge is that ALL bugs run the SAME program simultaneously!
Puzzle:
Available instructions:
MOVE - move forward one cell
LEFT / RIGHT - rotate 90 degrees
IF FLOWER - execute next line only if flower ahead
IF EMPTY - execute next line only if path clear
IF WALL - execute next line only if wall ahead
IF GEM - execute next line only if gem ahead
Board:
Legend:
Flower (blocks movement)
Gem (collectable)
Wall (blocks movement)
Goal:
Write a single program that guides both bugs to collect gems and reach their targets safely.
If I understand your output correctly, you missed the two steps with the IF statements. Or rather, I wrongly wrote it directly after the IFs, since the instruction stated "the next line"
So here is the revised version:
MOVE
MOVE
MOVE
LEFT
IF FLOWER:
RIGHT
RIGHT
RIGHT
IF FLOWER:
lEFT
LEFT
MOVE -> should have reached the goal
Also, shouldn't they have collected the gems when walking over them?
Tbh I came up with idea of the game and then played around with Claude a bit. I will also try to come up with my own levels, but if the puzzle works and is good, I actually think AI can be a good assistant here. But yeah, I will try to invest more work of myself in it :)