Create a single-file HTML game from a teacher-reviewed Google Sheet of observable skills and classroom scenarios.

By Phillip Alcock

Published: 2026-11-13

URL: https://aiworkflowsforteachers.substack.com/p/build-a-classroom-decision-game-with


Time: 30–45 minutes, estimated, plus any time needed to prepare source material | Level: Beginner | Platforms: Gemini → Google Sheets → Claude Artifacts

View the game here - <https://sites.google.com/pblfuturelabs.com/field-missions-app/home>

Before you start

Choose one unit topic, a year level and a learning goal. Gather lesson notes or other approved material that Gemini can use to draft scenarios. You will review every row before building the game.

You need access to Gemini, Google Sheets and Claude with Artifacts. Features and account access can vary. If a connector or export option is unavailable, the steps include a copy-and-paste alternative.

Avoid uploading identifiable student information. Use teacher-created material or resources you have permission to share with the tools.

You will finish with a Google Sheet containing the reviewed game content and an HTML game containing a copy of those rows. If you already have a reviewed sheet with the seven columns below, begin at Step 3.

Route: Gemini (draft skills and scenarios) → Google Sheets (review the content) → Claude Artifacts (build the game) → browser (test the HTML file).

AI Workflows for Teachers membership

This workflow is available to paid subscribers of AI Workflows for Teachers. Paid membership also includes access to other paid resources, including:

  • AI workflows designed for teachers.
  • Permission to reuse the workflows in training sessions.
  • 13 packs from the Gumroad store at no extra cost. The packs are valued at over $200 USD and include skills and ebooks. I’ll send subscribers a Google Drive link to access them.

\*Annual membership costs $50 USD. Subscribe as a paid member to access the workflows and receive the 13 packs.

Membership support helps me continue creating AI resources for teachers and growing the publication.

AI for Teachers is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

Free subscription

Free subscribers receive at least one free post each week, along with partnership and sponsored posts. The 130 free workflows are also available to explore.

Teach me about the code and the prompts

A request to “make a game about ecosystems” leaves the AI to decide what students should do, which facts to include and what counts as a correct answer. It may produce questions about vocabulary when you wanted students to apply their knowledge.

The first prompt gives Gemini a more specific job: draft situations where students make an observable decision. Each row becomes one game card.

For example, a row for a unit on local ecosystems might ask students to decide how to investigate whether two schoolyard areas provide different habitats. The three choices could include a sound investigation method, a common mistake and a superficial guess.

The two incorrect choices need careful review. If either could also be correct, the game will mark a defensible answer as wrong. Edit the scenario or choices until the best answer is clear from the information provided.

The spreadsheet acts as the content source. The Claude prompt asks for those cell values to be copied into the game without rewriting them. You still need to compare the finished game with the sheet: giving an AI a source and a restriction does not guarantee that it follows them perfectly.

The game itself uses three parts:

  • HTML creates the visible elements, including the scenario, buttons and scorecard.
  • CSS controls the presentation, including text size, spacing and focus indicators.
  • JavaScript shuffles the choices, checks the selected answer and records the result for the current round.

The prompt asks Claude to keep the reviewed rows together in a clearly labelled data section. If you later change a scenario, you can ask Claude to update that section using a newly reviewed sheet. The downloaded game contains a snapshot of the rows used to build it. Editing the Google Sheet will not automatically update the HTML file.

The scorecard reports answers during a game session. A correct answer to one multiple-choice scenario is evidence of a response to that scenario; it does not establish that a student has mastered the wider skill. The teacher can use the result to choose a follow-up question or conversation.

The PBL Future Labs Learning Mission

The mission: Students investigate how to make their school grounds more welcoming to local wildlife. In small groups, they use the teacher’s decision game to practise choosing ways to investigate habitats. They then propose one improvement for an area of the school.

Driving question: How could we improve one area of our school grounds for local wildlife?

Learning goal: Students will be able to use observations of a habitat to justify one proposed improvement.

The final product: A student portfolio entry

Each student creates a portfolio entry for the class or a school sustainability group. It includes:

  • The area investigated and the student’s observations.
  • One habitat decision from the game and an explanation of their choice.
  • A proposed improvement supported by an observation or other evidence.
  • A reflection on feedback and any change made to the proposal.

Students can present their entry as an annotated drawing, a written recommendation, a short slide deck or an audio explanation accompanied by labelled images. Each format should include the same observations, proposal and reasoning.

Suggested learners: Years 5–6, adapted as needed. Students should have some familiarity with habitats and with recording observations. The teacher can select a different unit and audience.

How the mission unfolds

  1. Investigate. Students observe an accessible area of the school grounds and record features that might provide food, water or shelter. They use teacher-approved resources to learn about local wildlife.
  2. Practise decisions. In groups, students play the teacher-reviewed game. After each scenario, they explain their choice and discuss the hint or feedback.
  3. Create. Each student develops a proposal and begins a portfolio entry using their observations and research.
  4. Review and improve. Partners check whether the proposal is supported by evidence and whether it is practical for the chosen area. Students revise their entries.
  5. Share and reflect. Students present their proposals to classmates or the school sustainability group and explain one decision they changed or would investigate further.

The teacher’s role: Select and check the game content, model how to connect an observation to a proposal, and ask students to explain their reasoning. Give feedback on the evidence and practicality of each proposal.

The students’ role: Observe, make and explain decisions, develop a proposal, and revise their work using feedback. Students do not need AI accounts for this mission.

Evidence of learning: Look for a specific observation and a clear explanation of how it supports the proposed improvement. Ask: “Which observation led you to suggest that change?”

Adapt the mission: Provide a photograph and a short list of habitat features for students who need observation support. To extend the task, ask students to compare two proposals and explain their trade-offs.

Steps

Step 1: Draft observable skills and scenarios

Platform: Gemini

Do this: Start a conversation and provide your unit notes or another approved source. Fill in the prompt with the year level, topic and learning goal. Paste the source material into the prompt or attach it if that option is available to you.

Tip: Choose a narrow learning goal. Ten decisions about one part of a unit are easier to review than ten decisions spanning an entire subject.

AI prompt: Use with Gemini

Starter template: fill in the [BRACKETS].


Create a draft table for a classroom decision game.
Year level: [YEAR LEVEL]
Topic or unit: [TOPIC OR UNIT]
Learning goal: [WHAT STUDENTS SHOULD BE ABLE TO DO]
Use the approved source material below for subject facts. If the material
does not support a scenario or answer, flag the gap instead of inventing
a fact. You may create fictional classroom or real-world situations that
apply the supplied information.
Create 10 rows. Each row should ask students to make a decision that
demonstrates an observable skill related to the learning goal.
Use these exact seven column headers:
Skill_ID | Observable_Skill | Real_World_Scenario | Correct_Action |
Common_Student_Trap | Surface_Guess | Coaching_Hint
For each row:

- Give it a unique Skill_ID, from S01 to S10.

- Write an observable skill using an action such as identify, compare,
choose, interpret or justify.

- Write a short scenario suitable for the year level.

- Provide one clearly best action and two plausible but incorrect actions.

- Make the three actions similar enough in length that the answer is not
obvious from its size.

- Write a hint that supports thinking without giving away the answer.

- Avoid trick questions and choices that could reasonably both be correct.
Return the table first. After the table, list any factual gaps,
ambiguous answers or rows that need teacher review.
Approved source material:
[PASTE YOUR UNIT NOTES OR APPROVED SOURCE MATERIAL]

You should have: A ten-row draft table and a separate list of any gaps or concerns.

Check before continuing: Confirm that the table has all seven columns and ten distinct IDs. Read the review notes and identify any missing source information.

Take to the next step: Use Export to Sheets on the table if it appears. Google documents this export option for Gemini table responses. Open the resulting sheet. Gemini Apps Help

If it fails: If the export option is unavailable, create a blank Google Sheet and copy the table into it. If everything lands in one column, use the spreadsheet’s available split-text option or paste the values into separate cells manually.

In this example, open the three-dot menu directly beneath the Gemini table, then select Export to Sheets.

Step 2: Review the game content

Platform: Google Sheets

Do this: Name the sheet Decision Game - [UNIT]. Read every row against your approved source material. Edit scenarios, answers and hints directly in the cells.

Check that:

  • Each scenario contains enough information to make the decision.
  • The correct action is accurate and clearly better than both alternatives.
  • The alternatives are plausible without being defensible answers.
  • The hint helps students think without stating the answer.
  • The reading load suits the class.
  • Each skill describes something a student can demonstrate.

Keep the header names unchanged. Resolve any gaps before building the game.

You should have: A teacher-reviewed sheet with ten complete rows and seven columns.

Check before continuing: Answer each scenario yourself, then check the answer against the source material. Ask a colleague to check any row where the best choice remains debatable.

Take to the next step: Copy the reviewed header row and all ten data rows. Keep the sheet as your editable source.

Step 3: Build the game

Platform: Claude Artifacts

Do this: Start a new Claude conversation. Paste the reviewed table beneath the prompt below. Alternatively, if your Google Drive connector is available and connected, provide the Google Sheet link and ask Claude to read it. Check that Claude can access the complete table before asking it to build the game. Anthropic documents both Google Workspace connectors and Artifacts, although availability can depend on your account and settings. Claude Help Center

AI prompt: Use with Claude

Starter template: fill in the [BRACKETS].


Build a single-file HTML classroom decision game as an interactive
Artifact for [YEAR LEVEL] students.
Use the reviewed table pasted below as the only source of game content.
Each row is one scenario. Copy every cell value exactly as supplied.
Do not invent, add, rewrite or remove scenarios, skills, answer choices
or hints. If the table is missing a required cell or cannot be read,
stop and tell me which row and column need attention.
Create:
1. A mission-select screen that lists the Observable_Skill values.
Selecting a skill starts its associated scenario. If a skill appears
in more than one row, include all its associated scenarios.
2. A scenario card that displays Real_World_Scenario and three answer
buttons using Correct_Action, Common_Student_Trap and Surface_Guess.
Shuffle the order of the answer buttons.
3. A “Need a Coach Hint?” button that reveals the row's Coaching_Hint
before the student answers.
4. Feedback after each answer that identifies whether the choice was
correct and displays the Correct_Action exactly as written.
5. A round scorecard that lists each attempted skill and whether the
student selected the correct answer on their first attempt. Label
these as “Correct first attempt” or “Needs another look”. Do not
describe the result as mastery.
6. A way to return to mission select and play again.
Keep all HTML, CSS, JavaScript and the copied table data in one HTML file.
Store the rows together in a clearly labelled section of the code, keeping
Skill_ID with each row. Make the game work without an internet connection
after the HTML file is downloaded.
Use readable text, with a base size of at least 20px, strong contrast,
large buttons, visible keyboard focus and keyboard-operable controls.
Do not require students to enter their names or personal information.
Keep results in the current session only.
Before building, report the number of rows and their Skill_ID values.
After building, provide the complete downloadable HTML file.
Reviewed table:
[PASTE THE SEVEN-COLUMN TABLE AND ALL REVIEWED ROWS]

You should have: A playable Artifact and a reported list of ten IDs, S01 through S10.

Check before continuing: Confirm the reported IDs and row count match your sheet. In the preview, open several skills and check that the displayed text matches the corresponding rows.

Take to the next step: Download the HTML file using the available Artifact controls. Anthropic’s documentation describes download controls for legacy artifacts and standalone HTML export for designs; the control you see can vary by Artifact type. Claude Help Center

If it fails: If Claude cannot read the sheet link, paste the reviewed cells directly into the conversation. If it cannot produce a downloadable file, ask it for the complete HTML code, paste that code into a plain-text editor and save it with the .html extension.

Step 4: Test the downloaded game

Platform: Your web browser

Do this: Open the downloaded HTML file in a browser. Play through every scenario, using the Google Sheet to check the wording. Disconnect from the internet and reopen the file to check that it still works.

For each scenario, check the question, all three choices, the correct-answer feedback and the hint. Test at least one incorrect choice and one correct choice. Use the keyboard to move between controls and select an answer. Check that the scorecard reports the first attempt accurately and that Play Again works.

You should have: A game that opens locally, displays all reviewed rows accurately and records the current round correctly.

Check before continuing: If a row is missing, text has changed, an answer is marked incorrectly or a control cannot be used, return to Claude with the ID and the exact problem.

Repair prompt: Use with Claude


Fix the HTML game in this conversation.
Problem: [DESCRIBE THE PROBLEM AND INCLUDE THE SKILL_ID]
Compare the affected row with the reviewed table. Preserve all table
text exactly, fix the reported behaviour, and provide the complete
updated HTML file. Do not add new game content.

Download the revised file and repeat the affected checks.

Save and use: Keep the reviewed Google Sheet and tested HTML file in your lesson folder. Open the game on a classroom device or share the file through your school’s approved method. If you share an Artifact link instead, check its access settings and test the link with the intended audience before the lesson.

The example above shows the hint and answer feedback in Claude’s preview. Repeat these checks in the downloaded file as well.

Completion check

  • All ten rows have been checked against approved source material.
  • Every scenario has one clearly best answer.
  • The game’s text matches the reviewed sheet.
  • Hints, answer feedback, keyboard controls and the scorecard work.
  • The downloaded file opens and works without an internet connection.
  • The sheet and tested HTML file are saved in the lesson folder.

After students use the game, note which scenarios prompted useful explanations and which choices caused confusion. Revise the sheet first, then update and retest the game.

Phil