-
Notifications
You must be signed in to change notification settings - Fork 3
/
PARAMETERS.txt
69 lines (41 loc) · 1.78 KB
/
PARAMETERS.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
59
60
61
62
63
64
65
66
67
68
69
in most scripts
bmin is constant
bmax varies from xlo to xhi
smin is constant
smax varies from ylo to yhi
# bfade, q, qqq are purely visual ... not related to Cc of Golly
#=============================
#a standard rule notation
#https://www.conwaylife.com/wiki/Larger_than_Life
#Rr,Cc,M1,Ssmin..smax,Bbmin..bmax,Nn
#Rr specifies the range (r is from 1 to 500 in Golly and LifeViewer; 1 to 10 in MCell).
diam = 2*r + 1
#Cc specifies the number of states (c is from 0 to 255 in Golly, LifeViewer and MCell[note 1])
#Mm specifies if the middle cell is included in the neighborhood count (m is 0 or 1).
PyMartinCA uses M1 or weighted
M1 internally even for HROT
#Ssmin..smax specifies the count limits for a state 1 cell to survive.
#Bbmin..bmax specifies the count limits for a dead cell to become a birth.
#Nn specifies the extended neighborhood type (n is M for Moore or N for von Neumann. Golly and LifeViewer also support C for Circular neighborhood)
PyMartinCA uses NM or weighted
###===================
### a historical note
#in legacy source code, by Martin Novy
#slo==smin
#shi==smax
#blo==bmin
#bhi==bmax
#
###
### then there was a mass-rename
### sed --regexp-extended -i.sedzalo22 's/\bblo\b/bmin/g' **.py
### sed --regexp-extended -i.sedza2 's/\bbhi\b/bmax/g' **.py
### sed --regexp-extended -i.sedza3 's/\bslo\b/smin/g' **.py
### sed --regexp-extended -i.sedza4 's/\bshi\b/smax/g' **.py
###
### sed --regexp-extended -i.sedz5 's/bfade, q, qqq may be related to Cc/parameters are described at PARAMETERS.txt/g' **.py
### sed ...
###===================
# PyMartinCA scripts originally evolved from
#http://nbviewer.ipython.org/github/martin12333/teaching-simso/blob/master/52-largerthanlife.ipynb
#https://github.com/thearn/game-of-life/blob/master/conway.py