AI Mastery Games is an open-source platform of 9 interactive web games that teach AI literacy through hands-on play. Instead of lectures about hallucinations, bias, and prompt engineering, students learn by investigating AI failures as a detective, defending ML pipelines from attacks, and running AI startups. Every game session measures 5 skill dimensions β prompting, concepts, tools, critical thinking, and ethics β giving both students and instructors concrete data on learning gaps.
| *Source: Gamifying Learning with AI (Taylor & Francis) | AI Literacy Through Games (Wiley) | Games for AI/ML Education (ResearchGate)* |
Why Games for AI Literacy?
Research shows that gamified approaches promote AI literacy by creating competitive, motivating environments with immediate feedback and visual simulations of complex concepts. Students develop critical thinking naturally β spotting hallucinations in a shooting gallery or weighing ethical tradeoffs in a narrative game engages different cognitive skills than reading about them.
The βHallucination Detectiveβ approach β where students investigate how AI chatbots produce incorrect information β is emerging as a key pedagogical pattern across universities. AI Mastery Games formalizes this into a full curriculum tool.
The 9 Games
| Game | Mechanic | AI Skill Taught |
|---|---|---|
| AI Detective | Interactive scene investigation with zoomable hotspots | Diagnosing AI failures β hallucination, bias, prompt injection, ethics |
| Prompt Arena | Critique / Battle / Optimize modes | Prompt engineering and evaluation |
| AI or Human? | Swipe-based guessing (Turing test) | Distinguishing AI-generated vs human content |
| AI Escape Room | Timed puzzle rooms | Applied AI knowledge under pressure |
| Hallucination Hunter | Shooting gallery with CRT monitor theme | Spotting AI hallucinations in real time |
| AI Ethics Quest | Narrative dilemmas with 4 meters | Ethical decision-making (Trust / Profit / Safety / Equity) |
| AI Startup Tycoon | 8-quarter business simulation | AI business strategy and regulatory tradeoffs |
| Pipeline Defense | Tower defense | ML pipeline security β bias, drift, adversarial attacks |
| Token Tumble | Drag-and-drop puzzle with timer | Token ordering, sequencing, and AI architecture |
Each game has 4 difficulty tiers (beginner β expert) and supports 5 languages (EN, ZH, ES, DE, IT).
5-Dimension Skill Model
Every game session produces a score across 5 dimensions:
Prompting
/\
/ \
Ethics ---- ---- Concepts
\ /
\/
Critical Tools
Thinking
- Prompting β Can the student craft effective prompts and evaluate prompt quality?
- Concepts β Does the student understand how AI models work and their limitations?
- Tools β Can the student use AI tools appropriately in real workflows?
- Critical Thinking β Can the student evaluate AI outputs and spot errors?
- Ethics β Does the student consider fairness, safety, and societal impact?
Mastery levels: Novice β Apprentice β Practitioner β Expert β Master
For Instructors
The admin dashboard provides class-wide analytics:
- Skill Gaps β horizontal bars showing average scores per dimension, sorted weakest-first. Red/yellow/green coding instantly shows which skills need more teaching time.
- Score Distribution β histogram showing how students cluster across score ranges.
- Per-Game Performance β which games are hardest for students, sorted by average score.
- CSV Export β download all session data for external analysis.
The student profile page gives learners their own radar chart, progression over time, and personalized recommendations (βYour weakest area is Ethics β try AI Ethics Questβ).
Tech Stack
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router) + TypeScript |
| Styling | Tailwind v4 + Framer Motion |
| Charts | Chart.js (radar + line) |
| i18n | next-intl (5 locales) |
| Data | JSONL file store (no database) |
| Deploy | AWS EC2 + Docker |
How LearnAI Team Could Use This
- Use AI Mastery Games as a low-friction practice layer after AI literacy lessons, letting learners apply concepts like hallucination detection, prompt evaluation, ethics, and AI security through short game sessions.
- Review dashboard skill-gap data to identify which concepts need reteaching across a class or cohort.
- Use individual student profiles to recommend targeted practice games based on weak dimensions such as Ethics, Critical Thinking, or Prompting.
Real-World Use Cases
- AI literacy workshops: Run selected games as hands-on stations for teachers, students, or staff learning how AI systems fail.
- Classroom formative assessment: Use game scores to see whether learners can identify hallucinations, bias, prompt injection, and ethical tradeoffs before moving to larger projects.
- Professional development: Let educators experience common AI risks through play, then connect each game mechanic to classroom policy, assignment design, and student guidance.
Try It
- Play: monmouthaiteaching.com/ai-games
- Student Profile: /ai-games/en/profile