Skip to main content
100%

A random dungeon generator that fits on a business card

✓ Published0🌍 Public
FFrozenfire92
Last edited Mar 2, 2019
Created on Mar 5, 2019

This example renders a procedurally generated dungeon map as ASCII art in a terminal, using a random cave-growing algorithm. It shows a 40-by-80 grid of wall and floor tiles, with occasional doorways, gold, and a starting position marked by `@`. The generator, written in C, uses the standard library’s `rand()` for all stochastic decisions, and draws its output via `printf` and `putchar`. The code fits on a business card, implementing the entire simulation in a single compressed source file.

AI-generated description

Similar vizzes