Code Crew G1 / Week 04 / Monday
1/6
Week 04 · Bug Hunt in the Lines

Monday

Tap the bad line
// Find the bug, fix the line
⏱ about 15 min
Rocket the inventor holding his engineering tablet

A bug in the lines!

Rocket had a perfect plan.

But Nova flew wrong!

One line is a bug.

A bug hunter can find it.

WARM-UP: PLAN FIRST
  • Think like a planner.
  • Tap the answer.
the grid
?
the grid
?
A three by three grid with a blue start dot and a flag

The plan was perfect

The plan: right, right, up, up.

Trace it. It works!

So the bug hides in the lines.

Nova the drone-bird hovering with glowing eyes

Nova flew it exactly

Nova flew every line exactly.

Even the wrong one!

The bug is in the lines.

The buggy program: move right, move right, move down, move up

What do you notice?

Read each line slowly.

Match it to the plan.

Line three says down. Bug!

move right
move right
move down
move up

Nova beeps: great discovery!

Finding a bug is winning.

Now hunt some more!

TAP THE BAD LINE
  • Listen to the plan.
  • Tap the line that breaks it.
find the bug
?
find the bug
?
find the bug
?

Three bugs, three discoveries!

Now fix the program.

Build it the right way.

REBUILD IT FIXED
  • The plan: right, right, up, up.
  • Build it with no bugs.
1line 1
2line 2
3line 3
4line 4
TRICKY ONES!
  • Read every single line.
  • Tap the sneaky bug.
find the bug
?
find the bug
?

Bug found, bug fixed!

A bug is a wrong line.

Finding one is a discovery!

Fixing makes the program shine.