GitHub developer Lee Reilly has turned a codebase into a playable roguelike dungeon using the GitHub Copilot CLI. The tool, named GitHub Dungeons, generates a unique dungeon map for every repository, with its layout evolving alongside code commits.
This project leverages procedural generation, a method of creating content algorithmically rather than by hand. For roguelikes, this typically means generating levels, maps, or enemies using rules and randomness, ensuring each playthrough offers a fresh experience. The exact phrase procedurally generated roguelike describes this core mechanic.
From Code to Combat
The extension transforms a repository into a terminal-based adventure where players navigate using arrow keys, fight 'bugs', and search for an exit. Each repository yields a distinct map, and every code change reshapes the dungeon's layout. Permadeath, a genre staple, means starting over upon defeat.
Reilly described the prompt that kicked off the project: "Build a GitHub CLI extension in Go that takes the current repository and turns it into a playable roguelike dungeon, with dungeons generated with BSP." The result is a testament to the creative applications of AI in development.
