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

More in Algorithms & Data Structures

Notional Machine Animator

A step-through code execution visualizer where students see memory boxes, the call stack, and heap arrows update expression by expression, then compare their predicted model to what actually happened.

Algorithms & Data StructuresTeaching toolMediumSep 7, 2026

Build Your Own Type Inferencer

Students implement a Hindley-Milner type inference engine for a small functional language, guided by a step-through visual debugger that animates constraint generation, unification, and the final type environment in real time.

Algorithms & Data StructuresClass assignmentLargeSep 2, 2026

Observable Algorithm Visualizer

A browser environment where students implement standard algorithms in JavaScript and a code instrumentation layer automatically generates step-by-step animated visualizations driven by the student's actual code execution, not hardcoded animations.

Algorithms & Data StructuresClass assignmentLargeAug 12, 2026

Pathfinding Playground

An interactive browser sandbox that animates classic pathfinding algorithms step-by-step on user-drawn grids, with AI narration explaining each decision in real time. Good for teaching, portfolio demos, and pure curiosity.

BuiltAlgorithms & Data StructuresProduct for a businessJul 26, 2026

All 27 ideas in Algorithms & Data Structures →