Skip to main content
Building with AI (Vibe Coding)

⏱ About 10 min10 XP

Instruction Games

You have done so much great thinking about instructions! Now it is time to play. In this lesson, every activity is a game or puzzle that lets you practice your skills. Get ready — your brain is about to have a workout!

Let the Games Begin!

We are going to play three different types of games in this lesson: Game 1: Order It Up — put steps in the right order. Game 2: Fix the Instruction — spot what is wrong and make it clear. Game 3: Build a Prompt — use what you know to create a great prompt from scratch. Each game builds on what you have already learned. Let's go!

Warm-Up Reminder

Remember the four ingredients of a great instruction: clear action, clear object, helpful details, and the right order. You will need all four in these games!

Put these steps for drawing a traffic light in the correct order by matching each step to its number.

Terms

Step 1
Step 2
Step 3
Step 4
Step 5

Definitions

Draw a tall dark rectangle for the traffic light body
Color the top circle red, the middle circle yellow, the bottom green
Draw a short pole below the rectangle
Add a small label that says STOP below the red circle
Draw three circles inside the rectangle, one above another

Drag terms onto their definitions, or click a term then click a definition to match.

Great work ordering those steps! Now let's try spotting what is wrong with some instructions. Here are three broken instructions. See if you can feel why each one is a problem: Broken 1: 'Make the thing blue.' Problem: What thing? There could be many things on the screen. Broken 2: 'Write words in the box.' Problem: Which box? What words? How many? Broken 3: 'First delete the file, then create the file.' Problem: You are deleting something that should exist! The order seems backward — usually you create before you delete the old version. Spotting problems in instructions is just as useful as writing good ones!

Complete the sentence about what makes an instruction good.

A clear instruction uses words so there is nothing left to guess.

Now for the trickiest game: building a prompt from scratch. You will be given a task, and you need to write the best possible prompt to give an AI helper. Remember: include the action, the details, the right order of ideas, and nothing vague!

Prompt Challenge

Ask an AI helper to explain how rainbows are made, in a way that is easy for a six-year-old to understand.

Your prompt should…

  • State that the explanation should be simple and easy for a young child
  • Ask for an example or comparison a child would recognize
  • Request that the explanation be short — no more than four sentences
Play This With Friends

The instruction games in this lesson are even more fun with a friend! Take turns being the computer and the instructor. The computer has to follow instructions exactly as given — no making up what they probably meant!

You want to draw a cat on a computer. Which is the BEST first step?

What is wrong with the instruction 'Make it louder'?

The Robot Maze Challenge

  1. Draw a simple grid on paper — five squares wide and five squares tall.
  2. Place a dot in the bottom-left square. That is the robot.
  3. Place a star in the top-right square. That is the goal.
  4. Write a list of instructions (one per line) using only these commands: 'move up,' 'move right,' 'move down,' 'move left.'
  5. Hand your instructions to a partner. They trace the path by following each instruction exactly.
  6. Did the robot reach the star? If not, find the mistake in your instructions and fix it!
  7. Try making the maze bigger for a harder challenge.