Rule:Help

From LifeWiki
Revision as of 19:11, 4 October 2023 by Ian07 (talk | contribs) (from discord)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

@RULE help

  1. this is a sample rule file.

@TABLE n_states:2 neighborhood:Moore symmetries:permute

  1. This is how to declare variables.

var a{0,1} var b=a var c=a var d=a

0 1,1,1,0,0,0,0,0 1 # a dead cell with 3 neighbors is born. 1 1,1,1,1,a,b,c,d 0 # a live cell with 4 or more neighbors dies. 1 a,0,0,0,0,0,0,0 0 # a live cell with 1 or no neighbors dies.