- Set up 6 laptops for 12 students (2 per laptop).
- Place hex code color worksheets and markers at each seat.
- Test WiFi and Claude.ai access on each laptop.
- Write "AI + Coding = Magic!" on the whiteboard.
- Greet students and introduce yourself.
- Icebreaker: Each student shares their name and one thing they like to do.
- Agenda Overview:
- Learn how to use AI to code a website game! ๐ฎ
- Hack and customize your game.
- (optional) Host your game on GitHub
- Present and share your game with the class.
- Show examples of simple website games
- Ask:
- "Who has made a website before?"
- "What is a website made of?"
- ๐ HTML = The bones (structure)
- ๐จ CSS = The skin & clothes (colors, fonts, layout)
- ๐ง JavaScript = The brain (makes things move and interact)
- "What are hex codes?""
- Hex codes are special color codes made of six numbers and letters that computers use to know exactly what color to show on a screen! ๐จ๐ป
- Open Claude.ai on laptops.
- Prompt students to type:
"Make me an HTML website game fill in the blank" - fill in the blank with any idea you have!
If you want help coming up with ideas you can type:
Can you give me some ideas for prompts that will generate fun HTML games and use emoji?
- What do you see? ๐ค
- What kind of game did you create?
Try asking Claude
"Use emoji"
"Make the cars bigger."
"Change the background color to blue."
"Make it a two-player game."
- Give students 10 minutes to explore, tweak, and "hack" their games.
- Pair up! Each student plays their neighborโs game.
- Encourage experimentation:
- ๐จ Change colors
- ๐ Add sound effects
- ๐ Adjust difficulty
๐ฅ See video tutorial here.
GitHub is like a magic folder where you save and share your website.
- Go to GitHub.com & login
- Click Repositories โ New.
- Name the game (e.g.,
car-race-game
). - โ Check "Add a README file."
- Click Create Repository.
- Click "Add File" โ "Create new file."
- Name it index.html.
- Paste the code.
- Click Commit (Green Button).
- Click on Settings (top right of repo).
- Scroll down to GitHub Pages.
- Under "Branch," select main and hit "Save."
- The website will take a few minutes to "deploy" so go play your game once and come back.
- At the top of your setting pages you will see the link for your website!
- ๐ Your website is now live! Share the link with friends! ๐
- ๐ค Each student comes up and demos their game.
- ๐ Class claps and cheers for each demo!
- ๐ธ Take a group photo with their games displayed.
"AI is magic, and YOU are now an AI coder!" ๐ฉโจ
- Encourage students to share their game links with friends and family.