1. Build your program by tapping command buttons on the right.
2. Press RUN AI CODE to watch your hero execute your commands.
3. Use STEP to test one command at a time.
4. FORWARD / BACK — move your hero in the direction it's facing.
5. TURN LEFT / RIGHT — rotate your hero without moving.
6. ATTACK — strike the enemy directly ahead of your hero.
7. SHIELD — deflect traps and magic hazards in front of you.
8. COLLECT GEM — pick up a gem on your current tile.
9. ADD LOOP — repeat the entire program N times.
10. Fewer commands = more ⭐ stars. Think like a clever AI!
KEYBOARD: Arrow keys move, A=Attack, S=Shield, C=Collect, Space/Enter=Run, R=Reset