-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
59 lines (51 loc) · 2.63 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Cellular Automata Map Generator
Copyright (c) 2012 Michael D. Reiley <[email protected]>
Released under the MIT/Expat License.
This is a cellular automata map generator algorithm based largely upon a
specification found at <http://www.evilscience.co.uk/?p=53>. It is well suited
to generating natural-looking, cavernous patterns. It may be useful for a
random dungeon generator. The algorithm can create maps of amazing variety
with a small number of variable starting conditions.
File List:
* grid.py : Generic Grid Class
* cellular.py : Map Generator
* postprocess.py : Map Postprocessing Functions
* run.py : Configurable Test Vector
* run_random.py : Randomized Test Vector
The included test vectors demonstrate the use of the algorithm, and dump the
generated maps to the console in an ascii representation.
The algorithm has no dependencies except for Python. (2 or 3)
Notes:
* Higher iteration counts lower the complexity of the map, while too little
iterations can produce ugly, messy maps.
* The iteration count needs to be adjusted for map size.
* A neighbor threshold of "4" and an initial closed cell probability of "45"
seems to produce the best results for regular operation. Even slight
deviations can produce ugly maps.
* The cell culling postprocessor isn't very useful for inverse operation mode.
* Increasing the postprocessor neighbor threshold too far will destroy the map.
##################################################
########### ######################## ####
########## ###################### ###
# ####### ############# ###### ##
######## ############### #### ##
######## ## ############ #### ## ## ##
##### ##################### ### #
# # ## ################# ##### #
# ############### ####### #
# ############## ####### #
# #### ############## ####### #
# ##### ############ ####### #
# ###### ########## ####### #
# ###### ######### ###### #
# ###### ######## ##### #
# ###### ####### ##### #
####### ###### #### #
##### #### #### #
#### ## ## ### #
### ### ## #
# #### ### #
# #### ### ##
# #### #### #######
# ##### # ##############
##################################################