Back to playground
Experiment · Generative storytelling

Dungeon Master

A playful AI adventure that feels like a tabletop session. Choose a name, race, and class—then Gemini spins up a custom quest tailored to your character.

Dungeon Master interface

The exploration

Using a large language model for delight: immersive openers, surprising twists, and replayable fantasy scenarios that feel handcrafted even when generated on the fly.

Built with

React / Vite / Gemini / Vercel

The challenge

Design an adventure that felt structured enough to guide the player, but open enough for Gemini to improvise—simple character creation, coherent high-fantasy tone, and a UI that reads like a game without getting heavy.

The approach

I built a focused flow: name, race (Human, Elf, Dwarf, Half-Orc, Fae), and class (Warrior, Mage, Rogue, Ranger, Cleric, and more). Confirming a character sends a structured Gemini prompt that asks for a quest opener with setting, stakes, and suggested next actions. Tone is constrained—high fantasy, slightly dramatic, second person—so every run feels like the same world even when the story is new.

The outcome

Each character starts a fresh narrative with a strong hook and clear next steps, proving LLMs can power whimsical, personal experiences—not only productivity tools. The build stays intentionally small; branching paths, persistent characters, and longer campaigns are natural next steps.