Lesson 3 — Build Your First Mini Game
Create a tiny browser game with one character, one goal, and one simple rule. Output: my-first-mini-game.html — a free, parent-guided lesson.
- ✓One character
- ✓One goal
- ✓One simple rule
- ✓A score or win message
- ✓A reset button
- ✓Saved as my-first-mini-game.html and opened locally in the browser
.html file — no extra files, no external libraries or online assets. Tiny Game Rule: keep it to one character, one goal, and one simple rule. Local browser project only — no account, no upload, no public posting, no private details.Lesson path
Prompt cards
Copy-friendly prompts for a parent-approved AI assistant. When copying prompts, use ideas, not secrets.
Help me make a very simple browser mini game for a child beginner. Use one character, one goal, and one simple rule. Do not ask for personal information.
Create a one-file HTML mini game. It should work when saved as my-first-mini-game.html and opened in a browser. Use simple HTML, CSS, and JavaScript in one file. Do not use external libraries or online assets.
My game did not work. Please help me check the code. Explain the fix simply. Keep it as one HTML file.
Make the game easier for a beginner child to understand. Keep only one character, one goal, and one simple rule.
- Open a plain text or code editor.
- Paste the full code.
- Save the file as
my-first-mini-game.html. - Make sure the filename ends in
.html(not.txt). - Open the file in Chrome, Safari, or Edge.
- If it opens as plain text, check the filename and re-save.
- ✓The page opens
- ✓The game starts
- ✓The player can interact
- ✓The goal is clear
- ✓The score or win message works
- ✓The reset button works
- ✓No private information is included
- File opens as text, not a gameThe filename must end in .html (not .txt). Re-save with the correct ending.
- Blank screenOpen the file again, or ask the AI: “My game shows a blank screen. Fix it and keep it as one HTML file.”
- Button does nothingAsk the AI to check the button and the JavaScript, and to keep everything in one file.
- Game is too hardUse Prompt 4 to make it easier — one character, one goal, one simple rule.
- AI added too much complexityAsk for a simpler version with fewer features. Tiny is the goal.
- Code got split into multiple filesAsk the AI to put all the HTML, CSS, and JavaScript back into one single HTML file.
- AI asked for private detailsDo not share them. Say: “Use made-up, general ideas only. Do not ask for personal information.”
You used AI as a helper to build a tiny game, saved it as one HTML file, and ran it on your own computer.
Next: Lesson 4 — Make the Game Yours →