Code Crew G1 / Week 04 / Tuesday
2/6
Week 04 ยท Bug Hunt in the Lines

Tuesday

The great line swap
// Find the bug, fix the line
โฑ about 15 min
Rocket the inventor holding his engineering tablet

Two lines traded places!

All the lines are good lines.

But two traded places!

The order is the bug.

WARM-UP: BUG TAPPING
  • Listen to the plan.
  • Tap the bad line.
find the bug
?
find the bug
?
The mixed-up show program with two lines swapped

The mixed-up show

Nova zoomed up, then down.

The lights flashed at the floor!

Two lines are in wrong spots.

Raven the explorer with her wrist computer

What do you notice?

Compare plan and program.

Line by line, like a detective.

Two lines traded places!

Nova the drone-bird hovering with glowing eyes

Nova performed it anyway

Nova runs any order exactly.

Even a mixed-up one!

You fix the order.

move up
turn around
flash lights
move down
stop

This is the real plan.

Read it twice.

Now rebuild the show!

SWAP THE SHOW BACK
  • Remember the real plan.
  • Build all five lines in order.
1line 1
2line 2
3line 3
4line 4
5line 5

One swap fixed the show!

Ready for a harder one?

This swap is sneaky.

A buggy show program that begins with stop

The show that stopped early

The show starts with stop!

Nova froze right away.

First and last traded places.

FIX THE FROZEN SHOW
  • The plan: up, right, wiggle, song, stop.
  • Build it in order.
1line 1
2line 2
3line 3
4line 4
5line 5

Last challenge!

The plan: up, right, stop.

Is each program fixed?

Tap T or F.

programfixed?
up, right, stop?
right, up, stop?
up, stop, right?
stop, right, up?

Swapped back to perfect!

Good lines, wrong seats.

Compare with the plan.

Swap them back!

โ† Monday