Skip to content

Generating random cave levels for games (using cellular automata).

Notifications You must be signed in to change notification settings

jtris/cave-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cave-generation

generate_cave.py

  • The levels will generate differently depending on the values of GRID_SIZE, INITIAL_CHANCE, NUMBER_OF_STEPS, BIRTH_LIMIT and DEATH_LIMIT.

  • By default returns a GRID_SIZE×GRID_SIZE matrix of 1-s and 0-s

display_cave.py

  • The single purpose of this file is just to display the generated outcome

screenshot

Releases

No releases published

Packages

No packages published

Languages