Difference between revisions of "Template:Rule"
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) (Support BSFKL rules.) |
(Remove user pages from categories) |
||
Line 87: | Line 87: | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
[[Category:Everything else]][[Category:Cellular automata]]{{#if:{{{g|{{{c|}}}}}}|{{#if:{{{r|}}}|[[Category:Larger than Life]]|[[Category:Generations]]}}|[[Category:Life-like cellular automata]]}} | {{#ifeq:{{NAMESPACE}}|User||[[Category:Everything else]][[Category:Cellular automata]]{{#if:{{{g|{{{c|}}}}}}|{{#if:{{{r|}}}|[[Category:Larger than Life]]|[[Category:Generations]]}}|[[Category:Life-like cellular automata]]}}}} | ||
</includeonly> | </includeonly> |
Revision as of 21:48, 18 May 2019
Maze | ||
|
||
View animated image | ||
Rulestring | 12345/3 B3/S12345 |
|
---|---|---|
Rule integer | 31752 | |
Character | Explosive | |
Black/white reversal | B0128/S01234678 |
The rule template is an infobox template for rules for Life-like cellular automata. It takes the following parameters:
- name: the name of the rule.
- imgname: the name of the image (of a typical pattern) to display in the infobox; .png and .gif are appended automatically for the still and animated versions. The File: prefix should not be specified.
- animated: should be set to true if an animated image for this rule has been uploaded.
- b: the rule's birth (B) conditions.
- bmin: for Larger than Life rules, the minimum neighbor count causing birth.
- bmax: for Larger than Life rules, the maximum neighbor count causing birth.
- s: the rule's survival (S) conditions.
- smin: for Larger than Life rules, the minimum neighbor count causing survival.
- smax: for Larger than Life rules, the maximum neighbor count causing survival.
- f: for BSFKL rules, the rule's forcing (F) conditions.
- k: for BSFKL rules, the rule's killing (K) conditions.
- l: for BSFKL rules, the rule's living (L) conditions.
- c: for Generations and Larger than Life rules, the total number of cell states. The parameter may also be specified as g.
- r: for Larger than Life rules, the range.
- m: for Larger than Life rules, whether the middle cell is included in the neighbor count (m=1) or not (m=0).
- n: for Larger than Life rules, the neighbourhood type: Moore (n=M) or von Neumann (n=N)
- char: the rule's character. Should be one of:
- Stable: rules in which patterns tend to stabilize quickly and show little activity.
- Chaotic: rules in which patterns tend to show complex behavior, but do not generally explode.
- Explosive: rules in which patterns tend to grow without bound.
- ruleinteger: the rule's rule integer (if any).
- reversal: the rule's black/white reversal.
- strobing: the rule's equivalent strobing rule. Should only be specified for self-complementary rules with S8 but not B0.
Example
An example can been seen to the right; it was generated with the following invocation:
{{Rule |name = Maze |imgname = maze |b = 3 |s = 12345 |char = Explosive |ruleinteger = 31752 |reversal = B0128/S01234678 |animated = true }}