Module 3: Guess the Flag
| Course: Scratch Programming | Level: Module 3 | Project 32 of 35 |
Official Raspberry Pi Project
This lesson is based on the official Raspberry Pi Foundation project. Open it alongside this guide to access the starter project, step-by-step instructions and community remixes.
### [🍓 Open "Guess the Flag" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/guess-the-flag)
How to use it: Click the link above, then click See Inside on the Scratch project to explore the finished version. Use Remix to get your own copy to edit.
What You Will Build
Create a flag quiz where users identify countries from their flags.
What You Will Learn
By the end of this project you will be able to:
- Use Events blocks to start scripts and respond to clicks
- Combine Motion, Looks and Sound blocks to create behaviours
- Use variables to track game state and scores
- Apply the specific Scratch concepts introduced in Module 3
You Will Need
| Item | Details |
|---|---|
| 🌐 Browser | Any modern browser — Chrome, Firefox or Edge |
| 🔶 Scratch account | Free at scratch.mit.edu |
| ⏱️ Time | Approximately 30–45 minutes |
| 📋 Starter project | Available via the Raspberry Pi link above |
Step-by-Step Guide
- Collect 10 flag images and add each as a costume of a flag sprite.
- Create a list of country names matching the costume order.
- When the game starts: pick a random costume and show the flag.
- Show 4 answer buttons with country names — one correct, three random.
- When a button is clicked: check if it matches the correct answer.
- If correct: play a cheer, add 1 to score, advance to next flag.
- If wrong: play a buzzer, subtract 1 from lives (start with 3).
- After all 10 flags: show
Score: X/10and grade (A–F). - Add a timer per question (10 seconds) — auto-advance if time runs out.
- Add a difficulty mode: easy (5 flags), hard (20 flags).
Extension Challenges
Try these after completing the main project:
- Add continent hints that appear if the player takes too long.
- Add a globe animation between questions.
- Add a world map that highlights correct answers after each round.
Reflection Questions
- Which Scratch blocks did you use most in this project?
- What would you add or change if you had more time?
- How could you reuse the ideas from this project in a different context?
Share Your Work
When your project is complete, click Share in Scratch and post the link to your class or the Techbase community.
| ← Back to Scratch Course | Next: Lesson 33 → |