Artificial intelligence and thinking
Guide the robot: sequences, choices and loops
Build the instructions, predict the route and check each step. The robot must finish on the goal, not merely pass over it.
Three progressive missions. A working example is loaded initially: run it, edit it, or clear it and build your own. Move and Turn refer to the robot’s facing direction, not the edges of the screen.
Three forward steps, a left turn, then two more steps. Watch the direction change.
Robot route
Tap a cell to add or remove an obstacle. Start and goal are protected. Changing the route returns execution to the beginning.
- Robot and direction
- Start
- Goal
- Obstacle
- Route travelled
Written blocks0
Executed actions0
Forward moves0
Turns0
Step0
Your program
At most 40 blocks, four nesting levels and 400 execution steps. The limit protects the browser; it does not by itself prove a loop is infinite.