Dungeonator  1.0.0
a dungeon generator library
Functions
dead_ends.h File Reference

code for removing the dead-ends of the dungeon More...

#include "direction.h"
#include "grid.h"

Go to the source code of this file.

Functions

void remove_dead_ends (Grid *grid)
 

Detailed Description

code for removing the dead-ends of the dungeon

Function Documentation

◆ remove_dead_ends()

void remove_dead_ends ( Grid grid)

remove dead ends inside grid based on checking if the number of exits is equal to 1

Parameters
[in]gridthe grid to remove the dead-ends of