← Back to course
Code Crew G1 / Week 07 / Tuesday
2/6
Week 07 Β· If, Then

Tuesday

If-then on the grid
// Check first, then act
⏱ about 15 min
Rocket the inventor holding his engineering tablet

If-then joins the grid!

A wall waits on the grid.

The program checks for it.

If wall, then move up!

WARM-UP: CHECK CHECK
  • Remember the new rule.
  • Tap the answer.
a wall
?
an open road
?
A three by three grid with a wall blocking the bottom road to the flag

A wall on the road

The bottom road is blocked.

One move, then... a wall!

The check will fire there.

Raven the explorer with her wrist computer

What do you notice?

The wall makes the if matter.

No wall? The check stays quiet.

Same program, different grid!

Nova the drone-bird hovering with glowing eyes

Nova flies the check

Glide, check, climb!

Then up and over to the flag.

The check beats the wall.

move right
if wall,
then move up
move up
move right
stop
PROGRAM AROUND THE WALL
  • Glide first, then check.
  • Build all six lines.
1line 1
2line 2
3line 3
4line 4
5line 5
6line 6

Now fly it yourself!

Tap the squares Nova visits.

Go where the if goes.

FLY WHERE THE IF FIRES

Tap the squares from S to the flag, around the wall.

S
Click S to start, then click each next cell. Path so far: 0 cells
the griddoes the if fire?
wall on the low road?
no walls at all?
wall right ahead of nova?
wall far behind nova?

Word Spot: old, men

Here are new sight words.

Look at each word. Say it. Spell it.

Old: O-L-D.

Men: M-E-N.

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?
?

The check flew true!

Walls make the if matter.

The check fires at the wall.

Your program beat the grid!

← Monday