Rule:Dominance

From LifeWiki
Jump to navigation Jump to search

@RULE Dominance

  1. 3 states, including state 0 (dead).
  2. States 1 and 2 are both considered alive.
  3. States 1 and 2 work just like Life on their own, but:
  4. If a dead cell has exactly 3 state 2 neighbors and 5 dead neighbors, it is born. However, if a dead cell has 3 state 1 cells, it will turn into state 1 no #matter what the other neighbors are.
  5. If a dead cell has 2 state 2 neighbors and 1 state 1 neighbor and 5 dead neighbors, it turns into state 2.
  6. Otherwise, a state 1 cell ignores state 2 cells.
  7. A state 2 cell survives with 2 or 3 live neighbors.

@TABLE n_states:3 neighborhood:Moore symmetries:permute

var a1 = {0,1,2} var b1 = {a1} var c1 = {a1} var d1 = {a1} var e1 = {a1} var f1 = {a1} var g1 = {a1} var h1 = {a1} var i1 = {a1} var a2 = {0,2} var b2 = {a2} var c2 = {a2} var d2 = {a2} var e2 = {a2} var f2 = {a2} var a = {1,2} var b = {a} var c = {a}

0,2,2,2,0,0,0,0,0,2 0,1,1,1,a2,b2,c2,d2,e2,1 0,1,2,2,0,0,0,0,0,2

2,a,b,0,0,0,0,0,0,2 2,a,b,c,0,0,0,0,0,2

1,1,1,a2,b2,c2,d2,e2,f2,1 1,1,1,1,a2,b2,c2,d2,e2,1

a1,b1,c1,d1,e1,f1,g1,h1,i1,0

@COLORS 1 255 255 255 2 150 150 255