Rule:Circleoflife

From LifeWiki
Revision as of 16:44, 29 October 2023 by Rowett (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. Circle of Life, a Cellular Atomaton by Ben Cluck (Batmanifestdestiny)
  2. 4-state, 9-neighbor CA for life of a typical animal
  3. Format: C,N,NE,E,SE,S,SW,W,NW,C'

@RULE circleoflife @TABLE n_states:4 neighborhood:Moore symmetries:rotate8 var a={0,1,2,3} var b={0,1,2,3} var c={0,1,2,3} var d={0,1,2,3} var e={0,1,2,3} var f={0,1,2,3} var g={0,1,2,3} var h={0,1,2,3}

  1. 0, is empty, 1 is young, 2 is mature, 3 is old
  2. if at least three youngs are touching, they will kill each other

1,1,1,c,d,e,f,g,h,0 1,1,b,1,d,e,f,g,h,0 1,1,b,c,1,e,f,g,h,0 1,1,b,c,d,1,f,g,h,0 1,1,b,c,d,e,1,g,h,0 1,1,b,c,d,e,f,1,h,0 1,1,b,c,d,e,f,g,1,0

  1. young -> mature

1,a,b,c,d,e,f,g,h,2

  1. if at least two matures are touching, they will kill each other

2,2,b,c,d,e,f,g,h,0

  1. mature -> old

2,a,b,c,d,e,f,g,h,3

  1. if at least two olds are touching, they will kill each other

3,3,b,c,d,e,f,g,h,0

  1. old -> empty

3,a,b,c,d,e,f,g,h,0

  1. if empty has 2 or more neighbors that are mature, than empty -> young

0,2,b,2,d,e,f,g,h,1 0,2,b,c,2,e,f,g,h,1 0,2,b,c,d,2,f,g,h,1 0,2,b,c,d,e,2,g,h,1 0,2,b,c,d,e,f,2,h,1 0,2,b,c,d,e,f,g,2,1