Game Mechanics: Build a Game With AI Assistants
In one month, build Snake with an AI coding assistant, change its rules until it's worth playing, let a bot that learns by trying and getting points hunt for loopholes in it, and put it on a web page for demo day.
21 Lodes · 12 Deliverables · 150 points · 4 weeks · big question: What makes a game worth playing again, and how do you build one when an AI writes some of the code?
16 of 16 pass
- ✓Ids are unique in this Burst122 entity ids
- ✓Ids are unique across context-v/778 ids checked against 7934 elsewhere
- ✓Every link resolvesevery [[id]] and ref exists
- ✓No stale link titlesevery [[id|Title]] copy matches its source
- ✓Weights sum to 1 among siblingsevery score sheet and every criterion
- ✓Portfolio can pass 100150 points: interactive 90, interdependent 25, independent 35
- ✓Expected level rises with self-directioninteractive at Successful, interdependent at Excellent, independent at Remarkable
- ✓One instructional time per instructor per day16 instructor-days, none doubled
- ✓Every week has the six touchpointslecture, orientation, lesson, topics, office hours, parent update × 4
- ✓Every Objective is served by a Lode6 objectives
- ✓Every part has a declared audienceno directive falls through to a default
- ✓No teacher, team, agent or designer text on student, parent or tour pages0 leaks across student.html, parent.html and index.html
- ✓Edit snippets quote only what the page's reader may seeevery pencil on student, parent and tour pages
- ✓Answer keys stay out of student and parent pagesticked answers render for teachers and designers only
- ✓Layer 1 uses no banned term (stage gate)index: 502 words · student: 152 words · parent: 192 words
- ✓Every reader page marks a layer-1 regionindex, student, parent
Three layers, and what is checked
43 banned terms in layer1_banned.
| Page | Layer 1 (no jargon, checked) | Layer 2 (behind a gate) | Layer 3 |
|---|---|---|---|
| index | hero, the playable cabinet, four levels, a week, one invented example | How the month works: terms, points, ATACC ladder, scale, arcade | links out |
| student | hero and four weeks | quests and points, each week’s sessions, scale, AI-tool rules | — |
| parent | hero, demo-day date, a week, what to ask | weekly notes, grading, routine, age rules | — |
| teacher, designer, score sheets, pacing | — | — | everything |
- ✓index.html layer 1 · 502 words checkedno banned term
- ✓student.html layer 1 · 152 words checkedno banned term
- ✓parent.html layer 1 · 192 words checkedno banned term
Burst, Lode, Lodes, Deliverable, Deliverables, stream, Independent, Interactive, Interdependent, ATACC, Presence, Team Dynamics, Fit Range, rubric, Scoring Scale, Needs Focus, Needs Initiative, Needs Effort, Remarkable, Awesome, Discover, Iterate, Reflect, agent, agents, reinforcement learning, Q-learning, Deep Q, neural network, PyTorch, Pygame, Flask, Gym, CartPole, GPU, CSV, RL, DQN, model, exploit, mechanics, curricula-v, pedagogy
150 points on offer, 100 to pass
Points of evidence per ATACC layer, summed over every score sheet.
Criteria library
| Criterion | Family | Layer | Sheets using it |
|---|---|---|---|
Works crt-gmwrk1 | Function | Craft | 3 |
Clear asks crt-gmask1 | Clarity | Thought | 2 |
Checked crt-gmchk1 | Rigor | Craft | 3 |
Fair and fun crt-gmfun1 | Design | Thought | 4 |
Evidence crt-gmevd1 | Rigor | Craft | 3 |
Explains it crt-gmexp1 | Understanding | Content | 5 |
Shows up ready crt-gmshw1 | Approach | Approach | 5 |
Keeps at it crt-gmpsh1 | Drive | Animation | 3 |
Plays fair with the team crt-gmtm01 | Collaboration | Animation | 4 |
Curious crt-gmcur1 | Curiosity | Thought | 3 |
Six, each served by Lodes
| Id | Objective | Lodes serving |
|---|---|---|
obj-gma001 | Describe a game feature to an AI assistant clearly enough to get working code: one change at a time, with the code and the error it needs. | 1 |
obj-gma002 | Read, run and fix code an assistant wrote, and explain in their own words what each part they kept does. | 4 |
obj-gma003 | Name a game's mechanics (goal, actions, scoring, difficulty, feedback) and change one on purpose. | 3 |
obj-gma004 | Playtest with other people and use what they do, not what they say, to decide whether a change made the game more fun or more frustrating. | 3 |
obj-gma005 | Explain how a bot learns by trying and getting points, and use one to find a loophole in their own rules. | 11 |
obj-gma006 | Put a game where other people can play it, and teach a stranger to play it in thirty seconds. | 4 |
The source had student goals ("learn reinforcement learningWe call this: reinforcement learningTeaching a program by reward. It tries a move, gets points or loses them, and slowly learns which moves pay.Draft wording, for Michael to correct basics, how to become a great developer, strategies to break down and solve complex challenges") but no written objectives. These six are an agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct's draft for the reframe. Objective 5 keeps the source's core; objectives 1 and 2 are new, because Michael asked that coding with assistants be taught, not assumed.
21 Lodes, light by design
Tokens are characters ÷ 4.
| Lode | Grain | Sessions | Media | Tokens |
|---|---|---|---|---|
| A Bot That Learns by Trying and Getting PointsLodelod-rlint1A Bot That Learns by Trying and Getting Points lodes/A-Bot-That-Learns-by-Trying.md · linked from 1 file | main-idea | 2 | 3 | ~722 |
| Ask, Read, Run, Fix: Coding With an AI AssistantLodelod-aiask1Ask, Read, Run, Fix: Coding With an AI Assistant lodes/Ask-Read-Run-Fix.md · linked from 1 file | main-idea | 2 | 1 | ~904 |
| Game Mechanics: Rules, Scoring, Difficulty, FeedbackLodelod-mechs1Game Mechanics: Rules, Scoring, Difficulty, Feedback lodes/Game-Mechanics.md · linked from 1 file | main-idea | 2 | 3 | ~698 |
| Loopholes: When the Bot Breaks Your RulesLodelod-loop01Loopholes: When the Bot Breaks Your Rules lodes/Loopholes.md · linked from 1 file | main-idea | 1 | 3 | ~444 |
| Requests and Responses: Putting a Game on the WebLodelod-flsk06Requests and Responses: Putting a Game on the Web lodes/Putting-a-Game-on-the-Web.md · linked from 2 files | main-idea | 2 | 3 | ~577 |
| Pygame: Frames, Colors and a Snake That MovesLodelod-pygm02Pygame: Frames, Colors and a Snake That Moves lodes/Pygame-Frames-Colors-and-a-Snake.md · linked from 1 file | main-idea | 1 | 3 | ~567 |
| Show It: The Demo-Day ArcadeLodelod-shwsn9Show It: The Demo-Day Arcade lodes/Show-It-the-Arcade.md · linked from 1 file | main-idea | 1 | 0 | ~291 |
| Your Own Game on the Snake CodeLodelod-ownga1Your Own Game on the Snake Code lodes/Your-Own-Game-on-the-Snake-Code.md · linked from 1 file | main-idea | 1 | 1 | ~380 |
| Build a Toy Deep Learning ModelLodelod-cnn005Build a Toy Deep Learning Model lodes/Build-a-Toy-Deep-Learning-Model.md · linked from 1 file | tidbit | 0 | 1 | ~154 |
| Deep Q-Learning, and Exploration vs. ExploitationLodelod-dqn003Deep Q-Learning, and Exploration vs. Exploitation lodes/Deep-Q-Learning.md · linked from 2 files | tidbit | 0 | 3 | ~414 |
| Game State: What the Game Remembers Each FrameLodelod-state1Game State: What the Game Remembers Each Frame lodes/Game-State.md · linked from 2 files | tidbit | 0 | 1 | ~228 |
| Information Interviews: What They Are and How to Run OneLodelod-intvw6Information Interviews: What They Are and How to Run One lodes/Information-Interviews.md · linked from 2 files | tidbit | 0 | 1 | ~266 |
| Math for AI: Probability, Statistics and Linear Algebra, Just EnoughLodelod-mthai8Math for AI: Probability, Statistics and Linear Algebra, Just Enough lodes/Math-for-AI.md · linked from 1 file | tidbit | 0 | 2 | ~171 |
| Neural Network Architectures, a TourLodelod-nnarc4Neural Network Architectures, a Tour lodes/Neural-Network-Architectures.md · linked from 2 files | tidbit | 0 | 1 | ~185 |
| How to Think About Picking a MajorLodelod-major0How to Think About Picking a Major lodes/Picking-a-Major.md · linked from 2 files | tidbit | 0 | 1 | ~208 |
| Practical Python in 10 HoursLodelod-py10hrPractical Python in 10 Hours lodes/Practical-Python-in-10-Hours.md · linked from 2 files | tidbit | 0 | 1 | ~193 |
| Reading a Training CurveLodelod-metr03Reading a Training Curve lodes/Reading-a-Training-Curve.md · linked from 1 file | tidbit | 0 | 1 | ~202 |
| Saving and Loading a Trained Model SafelyLodelod-pckl02Saving and Loading a Trained Model Safely lodes/Saving-and-Loading-a-Model.md · linked from 1 file | tidbit | 0 | 1 | ~179 |
| Short-Term and Long-Term Memory for an AgentLodelod-memry4Short-Term and Long-Term Memory for an Agent lodes/Short-and-Long-Term-Memory.md · linked from 1 file | tidbit | 0 | 1 | ~228 |
| The Bracket: Rules for Snake vs. SnakeLodelod-brkt05The Bracket: Rules for Snake vs. Snake lodes/The-Bracket.md · linked from 2 files | tidbit | 0 | 0 | ~262 |
| The Command Line in Fifteen MinutesLodelod-cmdln7The Command Line in Fifteen Minutes lodes/The-Command-Line.md · linked from 2 files | tidbit | 0 | 1 | ~175 |
A distribution, not a cutoff
Age fit for the base month (solid) and the full reinforcement learning path (dashed). The brief asks for ages 10 to 18.
fit{"grade": "8 ± 3", "age": "13.5 ± 3", "lexile": "900 ± 200", "focus": "25 ± 10"}
A diff, never a copy
◆ Game Mechanic
Badgebdg-rlsnk1Built a playable game with an AI assistant, changed its rules on purpose, used a learning bot to find a loophole, and put it where people could play it.
- deliverablePlayable SnakeDeliverabledlv-gm0001Playable Snake
deliverables/Playable-Snake.md · linked from 2 files - deliverableWhat the Bot FoundDeliverabledlv-gm0005What the Bot Found
deliverables/What-the-Bot-Found.md · linked from 3 files - deliverablePlayable in a BrowserDeliverabledlv-gm0006Playable in a Browser
deliverables/Playable-in-a-Browser.md · linked from 2 files - portfolioat least 100 points
Challenge level 2: the full reinforcement learning path
AI Camp's original 2021 sequence, kept whole for returning or advanced students: Deep Q on CartPole, an agent with memory, the snake-vs-snake bracket, and a Flask page where people play against the bot.
A Variant states only what changes. Everything not named here is the base month.
burst/Week-2-Change-the-Rules.md · linked from 3 filesslot: lesson
Deep Q on CartPole first, finished in one day, then build your own Snake agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct: the model, short-term memory and rewards, then long-term memory, training overnight. Every team uses the same inputs and outputs and designs its own rewards. Keep a log of rewardWe call this: rewardThe points the computer player gets or loses after a move. The team decides what earns them.Draft wording, for Michael to correct types and amounts with each run's result. See Deep Q-Learning, and Exploration vs. ExploitationLodelod-dqn003Deep Q-Learning, and Exploration vs. Exploitation
lodes/Deep-Q-Learning.md · linked from 2 files and Short-Term and Long-Term Memory for an AgentLodelod-memry4Short-Term and Long-Term Memory for an Agent
lodes/Short-and-Long-Term-Memory.md · linked from 1 file.
burst/Week-3-Let-a-Bot-Play.md · linked from 4 filesslot: orientation
The bracketWe call this: bracketThe tournament: teams' computer players meet two at a time, and the winner moves on, like March Madness.Draft wording, for Michael to correct: teams' best agents meet snake vs. snake, March Madness style, on an instructor-made board that imports each team's exported weights. Agree the format together. Trained agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct exported by Thursday, rounds on Friday. See The Bracket: Rules for Snake vs. SnakeLodelod-brkt05The Bracket: Rules for Snake vs. Snake
lodes/The-Bracket.md · linked from 2 files and Saving and Loading a Trained Model SafelyLodelod-pckl02Saving and Loading a Trained Model Safely
lodes/Saving-and-Loading-a-Model.md · linked from 1 file.
burst/Week-4-Ship-It-and-Show-It.md · linked from 3 filesslot: lesson
Deploy the model with Flask: design the app on paper, then the game on a page, then the agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct playing it, then a person playing against the agent. The bracketWe call this: bracketThe tournament: teams' computer players meet two at a time, and the winner moves on, like March Madness.Draft wording, for Michael to correct final runs at demo day. Add Neural Network Architectures, a TourLodelod-nnarc4Neural Network Architectures, a Tour
lodes/Neural-Network-Architectures.md · linked from 2 files, Build a Toy Deep Learning ModelLodelod-cnn005Build a Toy Deep Learning Model
lodes/Build-a-Toy-Deep-Learning-Model.md · linked from 1 file and Math for AI: Probability, Statistics and Linear Algebra, Just EnoughLodelod-mthai8Math for AI: Probability, Statistics and Linear Algebra, Just Enough
lodes/Math-for-AI.md · linked from 1 file.
burst/Week-1-Build-the-Game.md · linked from 4 filesslot: topics
The source's first lecture: open with a random agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct learning to play a game, and explain rewards and weights on day one.
This Variant is the 2021 summer timetable as the source had it, so SOURCES.md still maps every row. Expected levels move up one step. The bracketWe call this: bracketThe tournament: teams' computer players meet two at a time, and the winner moves on, like March Madness.Draft wording, for Michael to correct needs one shared game, which is why it lives here and not in the base month.
One-week intensive (the 2022 winter format)
Five days, 10 to 3: build Snake with an assistant on Monday and Tuesday, change one rule on Wednesday, let the bot play on Thursday, and open the arcade on Friday afternoon.
AI Camp's 2022 winter camp ran one week, with a lecture list and no day-by-day schedule. This Variant compresses the base month into five days.
burst/Week-1-Build-the-Game.md · linked from 4 filesslot: lesson
Monday and Tuesday. The reference game file is offered from the start: pairs build on it with the assistant rather than from an empty file.
burst/Week-3-Let-a-Bot-Play.md · linked from 4 filesslot: lesson
Thursday. The bot plays a Snake with the pair's changed rules, using the reference kit. No custom games.
deliverables/Two-Player-Mode.md · linked from 1 file
Not offered in a week.
Portfolio arithmetic needs rescaling for a week (open question): about half the Deliverables fit, so the pass mark would drop to roughly 50.
Design, team and agent notes
20 notes and 24 draft markers in Michael’s voice. None renders for students or parents.
Reframed on 2026-12-01 at Michael's direction: "'RL with Snake' should be more like Game Mechanics, Building a Game with AI Assistants, or something like that." The source is two AI Camp curricula: the 3-week summer timetable (2021) and the 1-week winter camp (2022). Their sequence survives with a new centre. Week 1 is still Python, Pygame and a playable Snake, now built with an AI coding assistant. Week 2 replaces CartPole and Deep Q with game mechanics and playtesting. Week 3 keeps reinforcement learningWe call this: reinforcement learningTeaching a program by reward. It tries a move, gets points or loses them, and slowly learns which moves pay.Draft wording, for Michael to correct as the twist: a bot learns the student's game and exposes loopholes in its rules. Week 4 keeps the source's deploy-and-demo week. The full reinforcement learning path (Deep Q, memory, the snake-vs-snake bracketWe call this: bracketThe tournament: teams' computer players meet two at a time, and the winner moves on, like March Madness.Draft wording, for Michael to correct, Flask) is now [[var-rlc202|Challenge level 2: the full reinforcement learning path]], so every source session still has a home.
Stakes and collaboration. The source was a game for the student's own sake: the first stakes rung. The reframe adds one step: the game is judged by other people playing it, first classmates in week 2, then families at the arcade (inferred: closer to PEDAGOGY §6's "real impact", without claiming it). Teams were split on day one in the source; here pairs or teams of three share one game, and each person owns a part of the code.
The week-to-layer mapping is an agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct's proposal, following the other Bursts' pattern, and is not Michael's. It schedules feedback; it doesn't mean Approach stops mattering after week 1.
Dated tools, kept as the source had them, with suggested current equivalents (inferred): OpenAI Gym and Gym Retro are unmaintained; Gymnasium (CartPole-v1) replaces Gym in the challenge path. Google Colab notebooks still work. "Train on AI Camp GPU" can become a free Colab GPU, though a small Snake bot trains on a laptop CPU. Exporting models "with pickle" should become torch.save of a state_dict. Flask is still current, but for the base path pygbag puts a Pygame game in a browser page with no server, which suits an arcade. The AI coding assistant is not named: use whichever the program licenses, and check its age terms.
SOURCES.md at the BurstWe call this: BurstOne month of AI Camp: four weeks, ending in a demo day for families.Michael’s words root lists every Notion page used, what was left out, and how the reframe moved each source session. Keep AI Camp's sequence unless a :::team note says otherwise. Layer-1 copy lives in front/Front-Door.md and is checked against layer1_banned in curricula.config.md.
Week 1 merges the summer timetable's week 1 with the winter camp's first lectures. The new lecture teaches the assistant loop; the source's Python notebooks and Snake build stay. The Friday "end of the week reflection + games" session becomes the week's closing ritual. Math for AI and recurrent networks moved out of week 1: Math for AI to the challenge path, and the RNN reading was dropped (see SOURCES.md).
"Show how easy it is to use Pandas to filter data" (Thursday's note to instructors in the source) has no link to the game, so it now lives in week 3, where students filter the bot's results.
Week 2 replaces the source's CartPole and Deep Q days with mechanics and playtesting, which the reframe makes the core skill. The source's "goal, inputs, outputs, rewards" orientation survives as the one-page design: goal, actions, scoring, difficulty, feedback. That page is also what the week 3 bot needs, so nothing is thrown away. CartPole, Deep Q and the agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct's memory move to the challenge path.
Playtesting with classmates is the only outside test most students will get before demo day. If the cohort is small, invite last month's students or siblings to Thursday's session (inferred).
Week 3 is where the source's reinforcement learningWe call this: reinforcement learningTeaching a program by reward. It tries a move, gets points or loses them, and slowly learns which moves pay.Draft wording, for Michael to correct lives now. It keeps the source's lecture on rewards, its overnight training, its log of rewardWe call this: rewardThe points the computer player gets or loses after a move. The team decides what earns them.Draft wording, for Michael to correct experiments and its "change the environment" exercise, aimed at the student's own game instead of a shared Snake. The source's "To-Do for Project Finalization" list stays as the stretch list. The bracketWe call this: bracketThe tournament: teams' computer players meet two at a time, and the winner moves on, like March Madness.Draft wording, for Michael to correct moves to the challenge path, because students' games differ and a bracket needs one shared game.
The bot kit has to be written. The reference split (game.py, agent.py, model.py) from AI Camp's private course repo and the public tutorial it follows is the starting point: generalise game.py's interface (reset, step, state, rewardWe call this: rewardThe points the computer player gets or loses after a move. The team decides what earns them.Draft wording, for Michael to correct) so any student game can expose it. Until it exists, students run the bot on Snake with their own rules. Never load another team's pickle: export weights only.
Week 4 is the summer timetable's week 3: deploy, demo prep and the demo. The source deployed with Flask; the base path now ships a static browser build, because a game needs no server, and Flask moves to the challenge path with the bracketWe call this: bracketThe tournament: teams' computer players meet two at a time, and the winner moves on, like March Madness.Draft wording, for Michael to correct (inferred). The bracket final becomes an arcade: every pair has a different game, and families play rather than watch. Information interviews stay as a tidbit.
The parent-facing ATACCWe call this: ATACCApproach → Thought → Animation → Craft → Content. Feedback starts with how the work was done and ends with what was understood.Michael’s words paraphrase above follows the other Bursts' agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct wording and needs Michael's own before it goes to a family.
All wording is a draft in Michael's voice for him to rewrite. Three criteria (Clear asks, Checked, Works) carry the new skill the reframe asks for: coding with an assistant.
The course lives in AI Camp's private repo organization-x/10hr-python (a link check returned 404). Link it here if it is published.
Draft rules by an agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct, not from the source. Agree them with the room in week 3, as the source's orientation note asked.
The source had student goals ("learn reinforcement learningWe call this: reinforcement learningTeaching a program by reward. It tries a move, gets points or loses them, and slowly learns which moves pay.Draft wording, for Michael to correct basics, how to become a great developer, strategies to break down and solve complex challenges") but no written objectives. These six are an agentWe call this: agentThe computer player. It sees the board, picks a move, and learns from the points it gets.Draft wording, for Michael to correct's draft for the reframe. Objective 5 keeps the source's core; objectives 1 and 2 are new, because Michael asked that coding with assistants be taught, not assumed.
Invented dates. The source ran 10 to 3 daily as a summer camp; this sample is the after-school shape the other Bursts use. The one-week Variant fits the summer shape. Coach R. has the parent call on Thursday 4 March, a day Coach T. teaches, so the one-session rule holds.
This Variant is the 2021 summer timetable as the source had it, so SOURCES.md still maps every row. Expected levels move up one step. The bracketWe call this: bracketThe tournament: teams' computer players meet two at a time, and the winner moves on, like March Madness.Draft wording, for Michael to correct needs one shared game, which is why it lives here and not in the base month.
Portfolio arithmetic needs rescaling for a week (open question): about half the Deliverables fit, so the pass mark would drop to roughly 50.
About 28k tokens in all
| File | Type | Tokens |
|---|---|---|
| curricula.config.md | Config | ~2,745 |
| burst/Game-Mechanics-Build-a-Game-With-AI-Assistants.md | Bursts | ~2,078 |
| library-candidates/Criteria.md | Criteria | ~1,711 |
| front/Front-Door.md | Front | ~1,579 |
| burst/Week-1-Build-the-Game.md | Stages | ~1,360 |
| burst/Week-3-Let-a-Bot-Play.md | Stages | ~1,359 |
| burst/Week-2-Change-the-Rules.md | Stages | ~1,262 |
| burst/Week-4-Ship-It-and-Show-It.md | Stages | ~1,109 |
| lodes/Ask-Read-Run-Fix.md | Lodes | ~904 |
| runs/Run-2027-03-Invented-Cohort.md | Runs | ~807 |