Idea · Jul 22, 2026
Gameplay Postmortem Agent
Students build a simple 2D game with a structured action-log system, then build an LLM agent that reads session logs and writes a rich narrative postmortem of a player's run: strategies tried, failure patterns, skill progression, and emergent play style.
What it would do
Commercial games studios produce postmortem analyses to understand player behavior, but most CS students never experience this data-driven design loop. In this multi-week assignment, students first build a small grid-based or Phaser.js game with a well-structured event log (every move, death, retry, and decision timestamped and serialized to JSON). In phase two they build a Flask API that accepts a session log file and calls the Claude API to generate a narrative postmortem: what strategies the player experimented with, where they got stuck and how they adapted, whether their style evolved across attempts, and what the game designer could improve. In phase three they build a React dashboard that visualizes the raw log alongside the generated narrative with synchronized highlighting. The result is a portfolio-ready project that teaches game state design, event-driven architecture, REST API construction, LLM prompt engineering, and data visualization in one coherent arc.
Key features
- Phase 1: Phaser.js game with structured JSON event logging (moves, outcomes, timing)
- Phase 2: LLM agent that reads logs and generates a player narrative postmortem
- Phase 3: React dashboard with timeline visualization synchronized to the AI narrative
- Stretch goal: multi-session comparison to detect skill progression across runs
- Rubric-friendly deliverables at each phase for phased grading