← Back to course
Code Crew G3 / Week 03 / Friday
5/6
Week 03 Β· Conditionals

Friday

// If this, then that

Friday: Mini-Project

Rocket wants to build a game. "Let's make an adventure!" he says. "Every step will have two choices."

Raven opens her notebook. "What do you notice about choices?" she asks. "Each one can lead somewhere new."

Nova draws glowing boxes and arrows. "Label each arrow with an if," she says.

Let's plan four steps for our game. Then we'll map the path we would take.

Build a Decision Game

Design a 4-step adventure. Each step has TWO choices.

Use the boxes for your story. Number the path you'd take.

Map your adventure here (boxes + arrows + IF labels)

Reflection

Adventure Check

FOLLOW THE PATHS
  • Read the question.
  • Tap your answer.
IF you open the red door, find a garden. ELSE find a library. You open the blue door. Where are you?
A game has 2 choices at step 1 and 2 choices at step 2. How many endings?
Which word gives a game a backup path?
In the library, IF you find a map, follow it. ELSE read a book. There is no map. What do you do?
Rule: IF you pick the cave, THEN light a lamp. ELSE climb the hill. You pick the hill. What do you do?
Rule: IF the bridge is open, THEN cross it. ELSE take the boat. The bridge is closed. What do you take?
A game asks three YES or NO questions in a row. How many endings can it have?

Quick Check

Read the game. IF you open the red door, you find a garden. ELSE you find a library. In the garden, IF you follow the path, you reach a pond. ELSE you reach a tree house. You open the red door. You do not follow the path. Where do you end up? ____
WHY THIS EXERCISEGames are built from IF choices inside other IF choices. Each choice sends the player down one branch.
← Thursday