Hour of AI Lesson Plan: Build a Game with AI
Diese Unterrichtsstunde auf Deutsch lesen
A ready-to-teach lesson for Hour of AI and Computer Science Education Week. Students design a small game on paper, describe it to an AI in their own words, play what it builds, and then improve it one change at a time. Along the way they find out what AI is good at, where it gets things wrong, and why a clear description matters.
At a glance
- Ages: 8–14 (grades 3–8). Pairs work well for the youngest.
- Time: 45–60 minutes, plus 10 minutes of setup before class.
- Devices: any computer, Chromebook or tablet with a web browser. Nothing to install.
- Accounts: students join your class with a code and a nickname — no email, no password.
- Languages: the site works in 12 languages, and the AI builds the game in the language students write in.
- Cost: free. A free class includes 15 builds per student per day, which is plenty for one lesson.
What students learn
- AI follows instructions, it doesn't read minds. A vague request ("a game") gets a vague result; a clear description gets what you meant.
- Design comes first. Every game needs a goal, rules, a way to win and a way to lose.
- Test, notice, improve. Change one thing at a time and predict what will happen before you press the button.
- AI makes mistakes. Checking whether the result is right, fair and works is the human's job.
Before class (about 10 minutes)
- Create a free teacher account at minicoder.app/for-teachers (email and password).
- In your teacher dashboard, choose Create a classroom. You get a join code and a join link (
minicoder.app/class/CODE) to put on the board. - Optional: under Class activity, write a challenge — for example "Make a catching game with a timer" — and start it when the lesson begins. You can also allow free creating.
- Build one game yourself so you know what students will see. It only takes a minute or two.
Please use a class. Without one, a whole computer lab shares one small guest allowance and students soon see "ask your teacher". With a class, every student has their own daily builds, and you can follow their progress and see their games from your dashboard.
Lesson flow
1. Warm-up — 5 minutes
Ask: "How would you explain a game to someone who has never seen one?" Collect answers: a player, a goal, something in the way, a way to win. Then: "Today you will explain a game to an AI. It will build exactly what you describe — so you have to describe it well."
2. Demo — 5 minutes
Project MiniCoder and build twice. First type only "a game". Then type a full description, such as "A cat catches falling fish. Each fish is one point. Avoid the falling boots. You win at 10 points." Compare the two results with the class: what made the second one better?
3. Plan — 5 to 10 minutes
Hand out the Game Recipe Card below. Students (or pairs) fill in a hero, a goal, an obstacle, how you win, how you lose and one surprise. Then they turn it into one or two sentences.
4. Build — 15 to 20 minutes
Students open the join link, pick a nickname, type their description and press create. They play their game straight away. Walk around and ask: "Is this what you described? What's different?"
5. Improve — 10 minutes
Students make one change at a time: "make the boots slower", "add a score in the corner", "add a second level". Before each change they say what they expect; afterwards they check whether it happened.
6. Share and reflect — 5 to 10 minutes
Students swap seats and play a neighbour's game, then answer one reflection question together.
Reflection questions about AI
- What did the AI get right? What did it get wrong, or add without being asked?
- Which words in your description made the biggest difference?
- Who is responsible for checking that a game works and is fair — the AI or you?
- Where else do you meet AI that follows instructions? What could go wrong there?
Adapting the lesson
- Younger students (8–9): work in pairs, fill in the recipe card together, and keep to three parts: hero, goal, obstacle.
- Older students (12–14): add constraints (a timer, three levels, a high score) or write the same game twice with different wording and compare.
- Finished early? Make a version of your game for a younger child, or add one new rule and test it on a classmate.
Safety and privacy
- Students join with a nickname. They need no email address and no account.
- Requests that are not suitable for children are declined.
- Remind students never to type real names, addresses or other personal details into any AI tool — a good habit to teach in this lesson.
- MiniCoder is hosted in the EU and has no advertising. Details are in the privacy policy.
Game Recipe Card
Fill in each line, then write your game as one or two sentences.
- My hero is…
- The goal of the game is…
- What gets in the way…
- You win when…
- You lose when…
- One surprise…
My game in one or two sentences:
One thing I will change after testing:
Frequently asked questions
Do students need accounts or email addresses?
No. Only the teacher creates an account. Students join the class with a code and a nickname.
Is it really free?
Yes. A free class includes 15 builds per student per day. A paid class plan only removes that daily limit for longer projects.
Does this teach coding?
It teaches the thinking behind it: breaking a game into rules, describing them precisely, testing and fixing — plus how AI tools behave. The AI writes the code, so the focus is on design and AI literacy rather than typing syntax.
Can I use it for Hour of AI or CS Education Week?
Yes, it is built as a one-hour, teacher-led activity. MiniCoder is independent and not affiliated with Code.org.