Now the Code.org puzzles get fun: Eon controls Scrat (the acorn-loving squirrel) and has to guide him to his food using blocks.

Two questions for every move

Eon's dad breaks it into a simple routine:

  1. Which direction? East, west, north, or south? (To reach the acorn on the right, that's east — "go right.")
  2. How many steps? This is the part beginners forget. You have to count the squares between Scrat and the goal. Two squares away means two "go right" blocks — not one, not three.

A program here is just a list of direction blocks, in order. Pick the way, count the steps, stack that many blocks, and press run.

Counting matters

When Eon tried to "go right" just once, Scrat stopped short. Counting the squares first — one block, two blocks — and adding exactly that many is what gets the character all the way to the goal. (You can even tap "show code" to see the list you built.)

Try it

Picture a grid: the acorn is 3 squares east of Scrat. How many "go right" blocks do you need? (Three — count the squares, match the blocks.)