Home首頁  /  Teaching Resources教學資源  /  Games教育遊戲

Interactive Educational Games互動式教育遊戲

A vocabulary matching game, a quick quiz, clickable flashcards — these are just one HTML file each. AI can build them, and you publish them exactly like any other page. Here's what you can make, and how the two kinds of AI handle it differently.

單字配對遊戲、快速小測驗、可點的字卡——這些每一個都只是一個 HTML 檔。AI 能做出來,你就像發佈其他頁面一樣把它放上線。這一頁告訴你能做什麼,以及兩種 AI 的做法差在哪。

What you'll understand你會明白

  • a The kinds of games AI can make as a single pagea AI 能做成單一頁面的遊戲類型
  • b The non-agent way (Gemini) vs the agent way (Claude Code)b 非代理人(Gemini)與代理人(Claude Code)的做法
  • c A game prompt you can copy and adaptc 一段可複製、可改的遊戲提示詞
  • d How to publish the game (it's just Lesson 1 again)d 怎麼發佈遊戲(就是第一課那套)
What you can make你能做什麼

Small games, big engagement小遊戲,大參與

Each of these is one self-contained HTML page — no app, no login:下面每一種都是一個獨立的 HTML 頁面——不用 App、不用登入:

Two ways to build it兩種做法

Non-agent vs agent非代理人 vs 代理人

Same idea as Lesson 2 — the difference is whether you place the files or the AI does.和第二課同樣的觀念——差別在於是你放檔案,還是 AI 幫你放。

Non-agent · Gemini非代理人 · Gemini

One game, in the chat一個遊戲,在對話裡

Describe the game; Gemini returns one HTML file in the chat. You copy it into index.html and publish it. To change it, ask again and re-paste. Perfect for a single game page.描述遊戲;Gemini 在對話裡給你一個 HTML 檔。你把它複製進 index.html 再發佈。要修改就再問一次、重貼。最適合單一個遊戲頁。

  • Free and fast for one game做一個遊戲免費又快
  • Bigger or linked games get tedious to manage較大或多個相連的遊戲就難管理
Agent · Claude Code代理人 · Claude Code

A set of games, wired in一整組遊戲,接進網站

Describe a whole game centre; the agent builds several games, a shared style and menu, saves the files, and can publish to GitHub. Tweaks like "make the timer 30s" apply across them.描述一整個遊戲中心;代理人會做好幾個遊戲、共用樣式與選單、存好檔案,還能發佈到 GitHub。像「把計時改成 30 秒」這種調整會一次套用。

  • Best for many games kept consistent最適合多個遊戲、保持一致
  • Needs setup, often a paid plan要安裝設定,常需付費方案
Copy this直接複製

A game prompt that works一段好用的遊戲提示詞

Paste this into Gemini (or any AI), then change the words in bold:把這段貼進 Gemini(或任何 AI),再改掉粗體的字:

Make a single, self-contained HTML file: a
vocabulary matching game for 10 animal words,
for grade 3 English learners.
Big colourful buttons, works on a phone, shows a
score, and plays a happy sound on a correct match.
Put all CSS and JavaScript inside the one file —
no external files. Name it index.html.
Tip:小訣竅: the magic words are "single, self-contained HTML file" — that keeps everything in one file you can upload in one step. 關鍵字是 「single, self-contained HTML file」——這樣所有東西都在同一個檔案裡,你一步就能上傳。
Put it online放上線

Publishing a game = Lesson 1發佈遊戲 = 第一課

A game is just an index.html. Upload it to a GitHub repo and turn on Pages — exactly the steps from Lesson 1 — and you have a link to share with your class.遊戲就是一個 index.html。把它上傳到 GitHub repo、開啟 Pages——就是第一課的步驟——你就有一條可以分享給全班的連結。

↗ Review Lesson 1: publishing↗ 複習第一課:發佈

Quick recap快速回顧

  • Many classroom games are just one HTML page很多課堂遊戲就只是一個 HTML 頁
  • Non-agent (Gemini): great for one game in the chat非代理人(Gemini):做一個遊戲很合適
  • Agent (Claude Code): best for a whole set, kept consistent代理人(Claude Code):最適合一整組、保持一致
  • Ask for a "single, self-contained HTML file"記得要求「single, self-contained HTML file」
  • Publish it the Lesson 1 way用第一課的方式發佈