Save Points - 2 Hour Workshop
Audience: Students ages 10-16 who completed Workshops 1-2
Theme: “Save before you experiment”
Series: AI Builder Series (Workshop 3 of 4)
- Slides
- Resources:
- Student Handouts:
- Instructor Notes:
1. Workshop Goals
By the end of this workshop, every student should be able to:
- Explain what a “known good version” is and why it matters
- Use git to create save points (commits) before making changes
- Write test cases in plain English that describe expected behavior
- Ask AI to generate test cases for their project
- Follow the development loop: save, change, test, keep or rollback
- Roll back to a previous version when a change breaks something
This workshop is about building safely — saving your progress so experiments can’t destroy your work.
2. Success Definition
A student is successful if they can say:
“I can save a working version of my project, try adding something new, test it, and go back to my save point if it broke.”
3. Environment & Prerequisites
Required Before the Workshop
- GitHub account signed in, with GitHub Copilot access enabled
- Your fork of the
quiz-gamestarter repo from Workshop 1, containing your cleanly separated quiz app from Workshop 2 (or use this workshop’s fallback starter code)
No local installs required — VS Code, Node.js, Git, Playwright, and the Playwright MCP server are all pre-installed in the Codespace you’ll open.
Primary Path: GitHub Codespaces
- Open your fork on GitHub → Code → Codespaces → resume your existing Codespace (or Create codespace on main)
- GitHub Copilot Chat for building
- Git for version control (commits, pushes, and reverts)
- Playwright MCP for testing
- Pushes to
mainauto-publish to your GitHub Pages site
Fallback Path (If Needed)
- Prefer a local setup? Follow the Setup Guide — Copilot Chat and the Playwright MCP server are pre-configured in the repo
- Students who missed Workshops 1-2 can use the starter-code from this workshop’s
starter-code/folder
4. 2-Hour Agenda (Minute-by-Minute)
0:00-0:10 — The “Oh No” Moment
Experience what happens without save points
- Instructor demo: make a change to the quiz app that breaks everything
- Try to undo it — but there’s no save point to go back to
- “Has this ever happened to you?”
- Ask: “What if you could go back in time to before the mistake?”
0:10-0:30 — Git: Your Save Point System
Learn to freeze working versions in time
Topics:
- What is git? A system that remembers every version of your project
- Analogy: video game save files — you save before the boss fight
- Key commands:
git add .— select what to savegit commit -m "message"— create the save pointgit push— publish the save point to GitHub (updates the live site)git log— see all your save pointsgit checkout— go back to a previous save point
- If a “Before adding…” save point has no changes yet, git refuses with “nothing
to commit” — use
git commit --allow-empty -m "..."to drop the marker anyway - Students make their first commit of the Workshop 2 quiz app
- View
git logtogether: “Look, you have a save point now”
0:30-0:50 — Writing Test Cases
Describe what the quiz app should do
- What is a test case? A plain-English description of expected behavior
- Format: “When I [do this], [this should happen]”
- Students write 3-5 test cases on paper or in a checklist file:
- “When I click Start, the first question appears”
- “When I pick the right answer, my score goes up by 1”
- “When I pick the wrong answer, the correct answer is highlighted green”
- “After the last question, I see my final score”
- “When I click Play Again, the quiz restarts with score 0”
- Use Copilot to help generate additional test cases
- Run through the test cases manually to confirm they all pass
0:50-1:00 — Break
- Encourage movement
- Optional prompt on screen: “What feature would you add to your quiz if you knew you could undo it?”
1:00-1:20 — Feature 1: Add with the Loop
Practice the save-change-test cycle
- Students pick a feature to add: score display improvement, question counter, or category label
- The loop:
- Save:
git commit -m "Before adding [feature]"— if nothing has changed since your last commit, git says “nothing to commit”; add--allow-empty(git commit --allow-empty -m "Before adding [feature]") to create the marker anyway - Change: prompt Copilot to add the feature
- Test: run through the test cases — does everything still work?
- Keep or rollback: if tests pass, commit and
git push. If not,git checkout .to undo
- Save:
- Walk through the full loop together as a group first
- Students practice independently
1:20-1:40 — Feature 2: The Intentional Rollback
Experience the power of going back
- Instructor provides a specific prompt that will subtly break something:
- Example: “Add a timer that counts down from 10 seconds per question. If time runs out, skip to the next question.” (This often breaks scoring)
- Students follow the loop: save, change, test
- They discover their test cases catch the bug
- Walk through the rollback together:
git checkout . - Key moment: “Your save point just rescued you”
- Students try again with a better prompt, or choose a different feature
1:40-1:55 — Feature 3: On Your Own
Apply the full loop independently
- Students add a feature of their choice using the complete workflow
- Encourage creative features: sound effects, animations, difficulty levels
- Instructor circulates and helps
- Each student should have at least 3 commits in their git log by now
1:55-2:00 — Wrap-Up and Review Git Log
See the story of your project
- Run
git logon the projector - “Each line is a save point. You can see the whole history of your project.”
- Preview Workshop 4: “You know how to build carefully on your own. Next time, you’ll build with a team — and everything you learned becomes even more important.”
5. Printed Student Handouts
Handout 1: Vocabulary (Fill-in-the-Blank)
- Commit, repository, revert, git log, test case
- Known good version, rollback, development loop
Handout 2: Mission Worksheet
- Test case writing exercise
- Feature loop tracking (save, change, test, result)
- Git log reflection
6. Instructor Guardrails
- Git can be intimidating. Keep it to the minimum commands: add, commit, push, log, checkout. Do NOT introduce branches yet — that’s Workshop 4.
- The intentional rollback in Feature 2 is critical. If students never need to roll back, they won’t understand why save points matter. Engineer a failure.
- Test cases should stay in plain English for younger students. Older students (14+) can optionally write them as Playwright scripts.
- Some students may resist reverting (“but I want to keep the broken version and fix it”). Acknowledge that instinct, but emphasize: a clean rollback is the safest move. Fixing broken code is an advanced skill.
- Have the fallback starter code ready (the clean separated quiz from Workshop 2).
7. Bridge to Workshop #4 (Team Up)
End with:
“Today you learned to save your progress and experiment safely. Next time, you’ll work with a team — and save points, test cases, and separated code will be the only things keeping you from chaos.”
8. Overarching Goals
- Build the habit of saving before changing
- Show that test cases are just descriptions of expected behavior
- Prove that rollbacks are a safety net, not a failure
- Give students a project with real git history they can review
- Set up the version control foundation for team collaboration in Workshop 4