This generates dungeons for the Dungeons and Dragons 3.5 system. Dungeons are fully fleshed out with details, traps, and encounters

dungeon, encounter, treasure, generator, dice, dungeons, dragons, d20, dnd, 3.5, gen
Install-Package DungeonGen -Version 3.1.3



Generate random Dungeons & Dragons dungeons

Build Status

Note: this is still in development and is not yet released


To use DungeonGen, simply use the DungeonGenerator. Levels up to 20 are supported.

var fromDoor = dungeonGenerator.GenerateFromDoor(15);
var fromHall = dungeonGenerator.GenerateFromHall(7);

Getting the Generators

You can obtain generators from the bootstrapper project. Because the generators are very complex and are decorated in various ways, there is not a (recommended) way to build these generator manually. Please use the Bootstrapper package. Note: if using the EnounterGen bootstrapper, be sure to also load modules for RollGen, TreasureGen, CharacterGen, and EncounterGen, as it is dependent on those modules

var kernel = new StandardKernel();
var rollGenModuleLoader = new RollGenModuleLoader();
var treasureGenModuleLoader = new TreasureGenModuleLoader();
var characterGenModuleLoader = new CharacterGenModuleLoader();
var encounterGenModuleLoader = new EncounterGenModuleLoader();
var dungeonGenModuleLoader = new DungeonGenModuleLoader();


Your particular syntax for how the Ninject injection should work will depend on your project (class library, web site, etc.)

Installing DungeonGen

The project is on Nuget. Install via the NuGet Package Manager.

PM > Install-Package DungeonGen

There's DungeonGen and DungeonGen.Bootstrap - which do I install?

That depends on your project. If you are making a library that will only reference DungeonGen, but does not expressly implement it, then you only need the DungeonGen package. If you actually want to run and implement the dice (such as on the DnDGenSite or in the integration tests for DungeonGen), then you need DungeonGen.Bootstrap, which will install DungeonGen as a dependency.