The goal is to find a sequence (a "program") of max 5 commands that will move the triangle (the "robot") through the grid and make it visit all the squares marked with a star.
Two types of commands can be used:
- P0 makes the sequence start over.
- The arrows (↑, ↱, ↰) move the triangle (forward) or make it change orientation (clockwise, anti-clockwise).
Each command can (but does not need to) have a color. A colored command is only executed if the triangle is in a square of the same color.
Attempting to move out of the board is not allowed.
You can play with it here if you want (no signup required). I'm the dev.
(Hopefully, this one won't be as easy as the one from 2 weeks ago.)