How a program runs
Also called sequence, order of instructions.
The computer carries out the instructions one at a time, from the top down, each once.
Careful: It never reorders blocks or fills in a missing one, so the same blocks in another order can do something else.
Taught in Order matters
Move and turn
Also called move forward, turn left, turn right.
move forward goes one square the way the egg faces. turn left and turn right change the facing by a quarter turn and leave the egg on its square.
Careful: A move into a wall or the edge of the grid stops the program at that block.
Taught in A program is a list of steps
Turning rules
Also called facing, three lefts make a right.
Left and right are the egg's own. Four turns the same way bring back the first facing, and three left turns do the same as one right turn.
Careful: A turn left is not toward the left of the screen unless the egg faces up the screen.
Taught in Turning
Say text or say a value
Also called output, quotes.
say "2 + 3" says the characters in the quotes: 2 + 3. say 2 + 3 works out the sum and says 5.
Careful: Working out a sum shows nothing. Only a say block adds to the output.
Taught in Saying things
Finding a bug
Also called debugging a route.
Run the program block by block against the plan. The bug is the first block whose result differs from the plan, which can come before the block where something visibly goes wrong.
Taught in The computer does what it says, not what you mean
Algorithm
Also called plan, route plan.
A plan precise enough for a machine to follow with nothing left to guess. Write a route as stretches and turns, then one block per square and per turn.
Applies: Use it before building any program longer than a few blocks.
Taught in Plans before blocks