Skip to content

Is Valid Dungeon

BenPyton edited this page May 30, 2019 · 5 revisions

Is Valid Dungeon

This function determine if the dungeon correspond to your needs.
Check all you want here and return true if the dungeon meets all your requirments.
If you return false, the generator erases all and begin a new generation.

In output, you have to return true to validate the dungeon, or false to regenerate.

Here an example where we check if the dungeon has an exit: