Inspiration
I wanted to make studying more engaging, effective and less lonely.
The Feynman technique inspired me: explaining an idea in simple language can help reveal what you do not yet understand. I also wanted to explore how curiosity, emotion and a sense of progress could make students more willing to practise and return to difficult material.
That led to Class of the Damned: a haunted learning adventure where your study material becomes the basis for monster encounters. Students can generate varied practice questions from their own notes, review their mistakes and discuss difficult concepts with an AI teacher.
What it does
Students import a document, choose a chapter-based lesson and enter a castle with five depths of practice: recall, understanding, application, analysis and synthesis.
Correct answers damage monsters. Wrong answers consume armour or health and bring a different question without immediately revealing the explanation.
After a run, students can:
- Review mistakes alongside excerpts from their original material.
- Save referenced study notes and explain concepts in their own words.
- Ask an Einstein-inspired AI teacher for explanations, examples and follow-up questions.
- Return for targeted practice on concepts they missed.
The aim is to connect the excitement of a game with a useful revision process that continues after the battle.
How I built it
I used Kiro Crew to develop the initial specifications and application foundation through structured prompts. The original requirements, design and task files are preserved in the repository.
After exhausting my Kiro credits, I used Codex for support completing and refining later features, including the combat flow, document processing, source-linked review, notebook and AI teacher.
The application uses React, TypeScript and Vite for the frontend, with Node.js and Express handling AI requests and grading. PDF.js and Mammoth extract document text locally. Only the selected lesson and limited chapter context are sent for AI generation.
Challenges I faced
Whole documents were a major challenge. Chapters needed to become manageable lessons without forcing students to crop their notes manually. PDF extraction also introduced broken formatting, particularly around mathematical notation.
Generated questions sometimes arrived incomplete or referenced unsupported passages. I improved the generation format and validation, using passage identifiers to retrieve original excerpts for review.
Another challenge was balancing gameplay with learning: keeping answers hidden during combat while making explanations, source references and further practice useful afterwards.
What I learned
I learned to write better prompts by defining clear boundaries, breaking work into focused tasks and describing what successful behaviour should look like.
I also learned that a convincing AI response still needs validation. Clear error handling, inspectable sources and testing mattered as much as generating content.
Most importantly, I learned to design beyond the quiz itself. The notebook and teacher discussion gave students ways to reflect, explain and continue learning.
What’s next
I want to test the project with students, improve mathematical document handling and add durable progress tracking. That feedback will help establish whether the experience supports learning—not just whether it makes revision more entertaining.
Accomplishments that we're proud of
- Turning a spooky game concept into a complete study loop: practise, review, save notes, ask questions and try again.
- Supporting whole-document imports with chapter-based lesson selection.
- Connecting reviewed answers and AI teacher explanations to excerpts from the student’s material.
- Building monster encounters with health, armour, helper rewards and increasing depths of practice.
- Preserving genuine Kiro specifications and clearly documenting how Kiro Crew and Codex contributed.
- Deploying a working application and passing 139 automated tests.
Built With
- codex
- express.js
- groq
- kiro-crew
- mammoth
- node.js
- openai
- pdf.js
- react
- typescript
- vite