Idea · Aug 28, 2026
Algorithm Quest Narrator
Students build an AI dungeon master that presents classic algorithm and data structure problems as narrative adventures, adapts difficulty to player performance, and engages in Socratic dialogue without giving away solutions.
What it would do
Algorithm Quest Narrator is a multi-week capstone assignment in which students build a game-narrative AI tutor from scratch. The system wraps algorithm problems (graph traversal, dynamic programming, sorting) in D&D-style quest narratives and uses an LLM to adapt problem difficulty, generate new narrative variants of classic problems, and run Socratic questioning when a player is stuck. Students must design a state machine for quest progression, write prompt engineering constraints that prevent the DM from revealing answers, implement performance tracking to drive difficulty adjustment, and evaluate the DM's pedagogical effectiveness with a small test group. The assignment teaches prompt engineering, agent design, state machines, and pedagogy simultaneously.
Key features
- Story-wrapped algorithm problems that preserve the underlying CS concepts
- Adaptive difficulty engine tied to player submission history
- Socratic dialogue mode that asks clarifying questions rather than revealing answers
- Instructor-facing prompt audit log showing every DM response and student reaction