Fan builds deterministic DCC dungeon map generator in one Python file with Claude
FairleafFarm · reddit · 2026-09-19
A Reddit user turned his Claude-based Dungeon Crawler Carl chat game into a multi-session coding project: a single Python file (stdlib only) that deterministically generates full dungeon floors — map, summary, and section-by-section breakdown (mobs, bosses, loot themes, stairwells) — from one seed. The same seed always reproduces the same floor, so it can feed a Claude project.
Key engineering notes:
- Each floor needed genuinely different logic: neighborhood grids, a subway-schematic rail map, a polar/radial map, a nine-slice faction-war pie, a 7-heat race season, and more (floors 1–11)
- Claude ran research passes on the wiki per floor's mechanics before coding; they iteratively designed the data model together (what's random vs. fixed per floor)
- All maps are hand-built SVG rasterized to PNG via cairosvg — no image-gen model involved
- Word banks live in per-floor JSON files so vocabulary can expand without touching generator logic
Author says it could also power a TTRPG. Open-sourced at github.com/MumblesCrzy/DCCMapgen
More from coding & agent
- Xcode 27.1 Adds iPhone Duo Readiness Skill Auditing Seven Classes of App Compatibility Issues — rudrank · 2026-09-19
- Law professor's five-week method turns students from prompters into AI tool builders — jkubicki · 2026-09-19
- opencode go at $10/month offers ~4x the tokens of going direct via OpenRouter — craigbalding · 2026-09-19
- No Prompt, No JSON Parsing: Jev's Typed API Maps Straight onto Java Records — therealdanvega · 2026-09-19
- Non-technical user rebuilds a community bot with Codex in ~20 minutes — Travi3000 · 2026-09-19
- Agent categorizes 63,045 emails in under 3 minutes for less than $1 — NathanWilbanks_ · 2026-09-19