Rule:LifeHistory2

From LifeWiki
Revision as of 01:51, 28 January 2023 by Confocal (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

@RULE LifeHistory2

A variant of LifeHistory with an extra ON state (cellstate 7) and an extra OFF state (cellstate 8).

A state-7 cell is an unmarked ON cell that was OFF in the previous generation. A state-1 cell is an unmarked ON cell that was ON in the previous generation.

A state-8 cell is an unmarked OFF cell that was never ON, but had two ON neighbours at least once:

  • 0 changes to 8 when it has exactly two ON neighbours
  • 8 changes to 1 when it has exactly three ON neighbours

state 0: OFF state 1: "old" (unmarked ON, was ON in the previous generation) state 2: history/envelope (state=2 if cell was ever ON) state 3: marked ON (may change to OFF but will always remain marked) state 4: marked OFF (may change to ON but will always remain marked) state 5: start ON (becomes a normal marked OFF cell when it dies) state 6: boundary OFF (can never turn on -- can keep subpatterns in a

         stamp collection from interfering with each other)

state 7: "new" (unmarked ON, was OFF in the previous generation) state 8: unmarked OFF, was never ON, had exactly two ON neighbours at least once

Example pattern:

x = 64, y = 59, rule = LifeHistory2 25.A$23.A.A$24.A.A$24.A7$22.3A10.10A$22.3A.A$23.A.A.A$14.2A8.A2.A$15. A9.2A35.F$12.3A47.F$12.A49.F$62.F$34.D27.F$4.A27.D3.D25.F$5.A31.D24.F $A4.A26.D4.D24.F$.5A27.5D24.F$62.F$62.F$62.F$12.A49.F$11.A.A$11.A.A$ 12.A3$52.A$51.A.A$52.A3$62.2A$61.A.A$61.A$60.2A2$28.A29.E$27.A.A27.E. E$27.A.A27.E.E$28.A29.E$17.A29.A$17.A.A27.A.A$17.3A27.3A$19.A29.A6$8. 2A$7.A.A$7.A26.11F$6.2A!

@COLORS

0 48 48 48 1 0 160 0 2 0 0 128 3 216 255 216 4 255 0 0 5 255 255 0 6 96 96 96 7 0 255 0 8 128 0 128

@TABLE

n_states:9 neighborhood:Moore symmetries:rotate8

var a={0,2,4,6,8} var b={0,2,4,6,8} var c={0,2,4,6,8} var d={0,2,4,6,8} var e={0,2,4,6,8} var f={0,2,4,6,8} var g={3,5} var h={0,1,2,7,8} var i={0,1,2,3,4,5,6,7,8} var j={0,1,2,3,4,5,6,7,8} var k={0,1,2,3,4,5,6,7,8} var l={0,1,2,3,4,5,6,7,8} var m={0,1,2,3,4,5,6,7,8} var n={0,1,2,3,4,5,6,7,8} var o={0,1,2,3,4,5,6,7,8} var p={0,1,2,3,4,5,6,7,8} var q={1,3,5,7} var R={1,3,5,7} var S={1,3,5,7} var T={1,3,5,7} var u={3,4,5}

  1. boundary cell always stays a boundary cell

6,i,j,k,l,m,n,o,p,6

  1. anything else that touches a boundary cell dies
  2. (using 'u' instead of 'g' below lets gliders survive as blocks)

g,6,i,j,k,l,m,n,o,4 1,6,i,j,k,l,m,n,o,2 7,6,i,j,k,l,m,n,o,2

  1. 0 changes to 8 when there are =2 ON neighbours

0,R,S,a,b,c,d,e,f,8 0,R,a,S,b,c,d,e,f,8 0,R,a,b,S,c,d,e,f,8 0,R,a,b,c,S,d,e,f,8

  1. marked 3-neighbour birth
  2. (has to be separate from the next section
  3. only to handle the extra 'start' state 5)

4,R,S,T,a,b,c,d,e,3 4,R,S,a,T,b,c,d,e,3 4,R,S,a,b,T,c,d,e,3 4,R,S,a,b,c,T,d,e,3 4,R,S,a,b,c,d,T,e,3 4,R,a,S,b,T,c,d,e,3 4,R,a,S,b,c,T,d,e,3

  1. marked 3-neighbour survival

g,R,S,T,a,b,c,d,e,g g,R,S,a,T,b,c,d,e,g g,R,S,a,b,T,c,d,e,g g,R,S,a,b,c,T,d,e,g g,R,S,a,b,c,d,T,e,g g,R,a,S,b,T,c,d,e,g g,R,a,S,b,c,T,d,e,g

  1. normal 3-neighbour birth

f,R,S,T,a,b,c,d,e,7 f,R,S,a,T,b,c,d,e,7 f,R,S,a,b,T,c,d,e,7 f,R,S,a,b,c,T,d,e,7 f,R,S,a,b,c,d,T,e,7 f,R,a,S,b,T,c,d,e,7 f,R,a,S,b,c,T,d,e,7

  1. normal 3-neighbour survival

h,R,S,T,a,b,c,d,e,1 h,R,S,a,T,b,c,d,e,1 h,R,S,a,b,T,c,d,e,1 h,R,S,a,b,c,T,d,e,1 h,R,S,a,b,c,d,T,e,1 h,R,a,S,b,T,c,d,e,1 h,R,a,S,b,c,T,d,e,1

  1. 2-neighbour survival

7,R,S,a,b,c,d,e,f,1 7,R,a,S,b,c,d,e,f,1 7,R,a,b,S,c,d,e,f,1 7,R,a,b,c,S,d,e,f,1

  1. marked 2-neighbour survival

q,R,S,a,b,c,d,e,f,q q,R,a,S,b,c,d,e,f,q q,R,a,b,S,c,d,e,f,q q,R,a,b,c,S,d,e,f,q

  1. ON states 3 and 5 go to history state 4 if they don't survive

g,i,j,k,l,m,n,o,p,4

  1. Otherwise ON states die and become the history state

q,i,j,k,l,m,n,o,p,2