Cave Generator


It's just a simple cave generator.

Generator is matching cave structure based on a cellular automaton). It can be used in eg. rogue-like games and other.

The source: www.roguebasin.com

Marks:

# - wall

. - empty space

"Generate" - compute another matches according the scheme given above.

"Reset" - Clears the board and fill it with random walls and empty spaces ("#" and ".") by percent chance of occurence of the Walls.

Board:

Walls %
Wall neighbors
Empty spaces