Game-Anything (HKUDS): Open-Source Platform That Turns Any Study Topic Into a Playable Browser Game
HKUDS's open-source Game-Anything (MIT license) sits on top of AI coding agents to turn any subject into an interactive browser game in minutes. Every generated game also doubles as an AGX training arena where AI agents can compete using reinforcement learning, Bayesian inference, or game-theoretic strategies.
- Follows a 5-step active loop: Learn a concept -> Vibe-code a browser game -> Play to win -> Reflect on mistakes -> Iterate the rules.
- Includes AGX (Agent-Native Gaming Platform), letting you plug RL, imitation learning, or expectimax agents into the exact same game rules.
- Ships with GameHub, a GitHub PR-driven community directory of playable learning modules.
- Open-source under MIT; requires Node.js 20.10+ and Python 3.10+.
Moving Past Passive Flashcards and AI Summaries
Reading an LLM summary of chemistry valencies, SQL query plans, or options pricing feels smooth—until you try to solve a problem the next day without hints. Game-Anything (HKUDS/Game-Anything) tackles that retention gap by forcing concepts into game mechanics: to win the game, you must apply the underlying rules accurately.
Core Components
| Module | Purpose |
|---|---|
| Learn-Build-Play Loop | Describe what you want to master; your coding agent builds a playable HTML/JS prototype in minutes. Play for 2 minutes, critique what felt too easy or unclear, and iterate. |
| AGX Arena | Every browser game also acts as a live agent environment where you can test reinforcement learning, imitation learning, expectimax search, or Bayesian/GTO bots under identical rules. |
| GameHub | Community library where builders share interactive learning games via standard GitHub Pull Requests. |
Requirements & Setup
- License: MIT
- Runtime: Node.js
>= 20.10and Python>= 3.10 - Best paired with: Any local coding agent (Claude Code, Antigravity, OpenCode, or Cursor) to iterate game rules directly in your browser.
Primary Sources & Verification
- HKUDS/Game-Anything on GitHub — GitHub / HKUDS