Lesson 2 of 8
Order changes everything
Show on a big screen"Turn left, move, move." "Move, turn left, move." Same three blocks. Same square?
Step 1 of 4
- The same three blocks, in two different orders.
- Order A — turn, move, move — ends up here.
- Order B — move, turn, move — ends up there.
- Different order, different cell.
No. The sprite ends on a different square.
The same blocks in a new order can end somewhere new.
The sprite runs each block from its current square. Turn first, and the next move goes in a new direction. Move first, and the turn happens on the new square.
Run both programs. Which one reaches the flag?
Loading lab…
Try the lab to finish this lesson.