Idea · Aug 2, 2026
Self-Narrating Game Agent
Students build a simple game and an AI agent that plays it while narrating every decision in natural language -- then evaluate whether the narrations are faithful explanations or post-hoc rationalizations.
What it would do
This multi-week assignment fuses two of the hardest ideas in AI: making an agent that plays well and making an agent that explains itself honestly. Students first build a small game (turn-based dungeon, tower defense, or maze -- their choice using Phaser or a text-based Python engine). They then implement a rule-based or search-based AI agent that plays the game and, after each decision, generates a natural-language rationale via the Claude API ('I moved left because the right corridor had three enemies and I needed a health pickup'). The final deliverable is an evaluation report: students use a structured rubric to judge whether the narrations faithfully reflect the agent's actual decision logic or merely sound plausible. This teaches game AI, prompt engineering, and the faithfulness vs. plausibility distinction central to AI explainability research. Connects directly to Pisan's 2001 work on agents that justify their actions.
Key features
- Starter scaffold in Phaser (browser) or Python (terminal) for the game engine
- Agent architecture template with a decision hook that feeds context to the Claude API for narration
- Evaluation rubric: faithfulness score (does the narration match the actual decision inputs?), fluency, and misleadingness
- Optional multiplayer mode: two student-built agents compete while narrating, and peers vote on whose narrations are more truthful