← Back to course
Code Crew G2 / Week 10 / Tuesday
2/6
Week 10 · The Bug-Hunt Method

Tuesday

Run part of the program
// Four steps to find a bug
⏱ about 15 min
Rocket the inventor holding his engineering tablet

Run part of the program

Rocket wrote a long practice program very fast.

Nova should say 6, but Nova says 8.

Eight lines is a lot to check at once.

Raven has an idea. Run just part of it!

Nova can stop after any line you pick.

Then you peek in the boxes.

WARM-UP: THE METHOD
  • Read each round.
  • Tap the answer.
a bug is hiding
?
set speed to 3
set fuel to 6
lower fuel by 1
say speed
?
Nova runs lines 1 to 4 and stops at the red bar

Nova can stop early

Nova runs lines 1 to 4.

Then Nova stops and shows the boxes.

You check them against the plan.

Nova the drone-bird hovering with glowing eyes

Is the bug before or after?

Boxes right? The bug is later.

Boxes wrong? The bug is in that part.

set speed to 2
set fuel to 5
change speed by 3
lower fuel by 2
change speed by 1
lower fuel by 1
change speed by 2
say speed

The plan says speed is 3 after line 4.

Run lines 1 to 4. What do you see?

STOP AND PEEK
  • Nova stops where the round says.
  • Tap the answer.
set speed to 2
set fuel to 5
change speed by 3
lower fuel by 2
?
set speed to 2
set fuel to 5
change speed by 3
lower fuel by 2
?
set speed to 2
set fuel to 5
change speed by 3
lower fuel by 2
?

Now fix the first part.

Nova shows the logbook the plan wants.

Build the lines that match it.

BUILD IT FROM THE LOGBOOK
  • Read the logbook rows.
  • Build lines that match each row.
1line 1
2line 2
3line 3
4line 4
Raven the explorer with her wrist computer

What do you notice?

Two stops found the bug.

We never checked lines 5 to 8!

set count to 1
set steps to 0
change count by 1
change steps by 1
change count by 1
lower count by 1
change steps by 1
say count
TRICKY ONES!
  • Stop where the round says.
  • Tap the answer.
set count to 1
set steps to 0
change count by 1
change steps by 1
?
change count by 1
lower count by 1
change steps by 1
say count
?

Word Spot: wash, which, later

Here are new sight words.

Look at each word. Say it. Spell it.

Wash: W-A-S-H.

Which: W-H-I-C-H.

Later: L-A-T-E-R.

FIND THE WORD
  • Listen to the word.
  • Tap it.
Listen and find
?
Listen and find
?
Listen and find
?
Listen and find
?
FILL THE GAP
  • Listen to the sentence.
  • Tap the missing word.
Which word fits?
?
Which word fits?
?

Stop, peek, and hunt!

Step 2 is run part of the program.

Boxes right? The bug is later.

Boxes wrong? The bug is in that part.

See you tomorrow, Crew!

← Monday