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.