Idea · May 21, 2026

NPC Constitution

Students build a text-based adventure game where every NPC is powered by an LLM but must strictly follow a "constitution" the student writes: a set of plain-language rules specifying what the character can say, remember, refuse, or lie about.

What it would do

A rule-checking middleware layer intercepts LLM responses and flags or rejects violations, forcing students to think concretely about AI alignment, prompt injection, and the limits of rule-based constraints.

Key features

  • Browser-based text adventure engine with at least 3 NPC characters
  • Student-authored constitution editor where rules are written in natural language
  • Middleware that evaluates each LLM response against the active constitution and logs violations
  • "Jailbreak challenge" mode where classmates try to get NPCs to break their rules
  • Reflection report generated by AI summarizing which rules held, which failed, and why

More in Games & Puzzles

Multiplayer Code Golf Arena

Students build a real-time competitive coding platform where participants race to write the shortest correct solution (fewest characters or tokens) to a given problem. A central leaderboard updates live as solutions are submitted and…

Games & PuzzlesClass assignmentLargeJun 10, 2026

NPC Dialogue Architect

Students define a game character (name, personality traits, backstory, faction, key relationships) as a simple YAML config file. A Flask + Claude API pipeline generates a full branching dialogue tree in Ink script format, ready to import…

Games & PuzzlesClass assignmentLargeJun 9, 2026

Adaptive Hint Engine

Students build a browser game (any genre: puzzle, platformer, quiz) and integrate a Claude API-powered hint system that observes serialized game state (score, level, failed attempts, player position) and generates Socratic hints rather…

Games & PuzzlesClass assignmentLargeMay 25, 2026

Agent Arena

Students implement competing AI agents that play a simple turn-based resource-collection game on a shared server. Each agent calls an LLM API (Claude or Gemini) to decide moves based on visible game state, and a tournament bracket system…

Games & PuzzlesClass assignmentLargeMay 13, 2026

All 41 ideas in Games & Puzzles →