Tap command tiles to build a program, then press RUN.
Light every lamp.
Keys: arrows, Space, Enter.
Bot Commands: all 30 levels in the fewest tiles, and why a function that calls itself is the best tile in the game
You program a small robot with tiles (forward, turn, light, repeat, call F1, if blue) and press RUN; it has to light every lamp. Stars count how many tiles you used. We cleared all 30 levels with three stars on the first run each. On 12 levels we found a shorter program than the level's three-star line; on 10 of them the game's line has now been lowered to it (two teaching levels keep the lesson's length).
The tiles
Forward moves one cell. Stepping off the board is a bonk and the run fails.
Turn left and turn right turn on the spot. Light switches the lamp under the robot. Careful: lighting a lit lamp turns it off again.
x2 and x3 repeat the next tile, and they stack: x3 x2 forward is six steps.
F1 runs the F1 row. If the F1 row ends with F1 itself, it keeps going until every lamp is lit, because the level ends the moment the last lamp lights.
From level 25, the if-blue tile runs the next tile only when the robot stands on a blue cell.
Stars
Three stars: no more tiles than the level's line (the number after the slash on the result card). Up to two more: two stars. Anything else: one star.
After three failed runs a hand shows a working program, and that level is then capped at two stars. On the five teaching levels (1, 6, 11, 19 and 25) the hand appears from the start and costs nothing.
The trick that wins the second half
A row that ends by calling itself is a loop with no counter. Put a short walk-and-light pattern in F1, end it with F1, and put a single F1 in MAIN. The loop stops by itself when the last lamp lights, so you never pay for the final steps. That is how level 11 needs four tiles instead of five, and level 30 eight instead of eleven.
Level 13, our program: MAIN calls F1 once; F1 is forward, turn right, forward, turn left, light, F1. Seven tiles for a staircase of four lamps.
If-blue: one row, any path
Blue cells mark the corners. Put the turn after an if-blue tile and the same F1 row walks a path of any shape.
Two if-blue tiles with opposite turns (one per half of the row) handle a staircase that alternates right and down, as on level 28.
Level 25, a teaching level: the hand shows the lesson's program while ours (forward, light, if blue, turn right, F1) is already typed. Six tiles; the line here stays at seven so that the lesson itself earns three stars.
All 30 levels as we played them
Every level was won on its first run, with no hint.
Levels
Our tiles
Three-star line now
Line before
1-5
3, 6, 8, 9, 11
3, 6, 8, 9, 11
3, 6, 8, 9, 12
6-10
4, 7, 11, 9, 11
4, 7, 11, 9, 11
same
11-15
4, 6, 7, 8, 7
5, 6, 7, 8, 7
5, 7, 8, 8, 8
16-20
9, 8, 8, 4, 6
9, 8, 8, 4, 6
9, 8, 9, 4, 6
21-25
8, 6, 6, 8, 6
8, 6, 6, 8, 7
8, 8, 6, 9, 7
26-30
6, 6, 9, 7, 8
6, 6, 9, 7, 8
6, 7, 9, 9, 11
Level 30: PERFECT with 8 tiles against a line of 8.
How we found the programs
Levels 1 to 10 use the MAIN row only. For those our own route search went over every cell, facing and set of lit lamps, counting a run of k forward steps at the fewest tiles that make it with x2 and x3. That proves the shortest program on each of these levels.
Levels 11 to 30: we ran every program shape through the game's own rules, shortest first, until all lamps lit. Where that search ran out of time (levels 16 and 28) we worked the program out by hand. On level 28 our hand-made program is the same one the game teaches.
We typed every program with the keyboard: arrows for forward and turns, Space for light, 2 and 3 for repeats, F for F1, B for if-blue, Down to switch rows, Enter to run.
What changed in the game
The three-star line used to be the length of the program each level was built from. Our search found shorter programs on levels 5, 12, 13, 15, 18, 22, 24, 27, 29 and 30, so those lines were lowered to the shorter length. On teaching levels 11 and 25 the line was left at the lesson's length.
Questions
Why did my robot stop with lamps still dark?
Either the program ended, or it lit a lamp twice (the second press turns it off). A row that ends with F1 keeps going until every lamp is lit.
Is there a step limit?
Yes. A run stops after 200 moves or very deep F1 calls, with 'Too many steps!'.
Does the hint cost stars?
After three failed runs it caps the level at two stars. On the teaching levels it is free.