Code Crew G1 / Week 03 / Wednesday
3/6
Week 03 Β· Plan, Then Run

Wednesday

From plan to program
// Trace the path before Nova flies
⏱ about 15 min
Rocket the inventor holding his engineering tablet

From plan to program

Today: the whole coder job.

Trace the plan first.

Then write five lines.

WARM-UP: JUDGE AGAIN
  • Trace each plan.
  • Tap the plan that wins.
the grid
?
the grid
?
A four wide, three tall grid with a blue start dot and a flag

The widest grid yet

Three spaces right.

Two spaces up.

Five moves in all.

Raven the explorer with her wrist computer

What do you notice?

Five moves in the plan.

Five lines in the program.

They match, move for move.

Nova the drone-bird hovering with glowing eyes

Nova is listening

Say the plan out loud.

Right, right, right, up, up.

Now you are ready.

TRACE THE LONG PATH

Trace the plan with your finger. Then tap the squares from S to the star.

S
Click S to start, then click each next cell. Path so far: 0 cells

Your finger knows the path.

Now read it as lines.

Then build it yourself.

move right
move right
move right
move up
move up
BUILD THE FIVE LINE PROGRAM
  • Say the plan again.
  • Build all five lines.
1line 1
2line 2
3line 3
4line 4
5line 5

Plan traced. Program written.

Nova flew it exactly.

The whole coder job, done!

TRICKY ONES!
  • Keep the plan in mind.
  • Tap the next line.
move right
move right
?
move right
move right
move right
move up
?

Five lines from one plan!

The plan and program match.

Move for move, line for line.

Tomorrow: a surprise on the grid!

← Tuesday