Robot Code
Program a robot with typed commands: move, turn and jump it to the flag in as few commands as you can.
Press Enter to start. Esc restarts during a game.
Type a program for the robot, then press Enter to run it: f moves forward, l and r turn left and right, and j jumps over water or a rock. Pick Words to type move, left, right and jump instead. A number repeats the next command (3f, or repeat 3 move), and brackets repeat a group: 2(fr). The robot must pick up every battery before the flag. If it bumps or falls, fix the program and run it again. Fewer commands earn more stars. Basics teaches moves, turns and jumps; Loops needs repeats for three stars.
Coding · Grades 2–8 · Medium