Rule:CBRLife
@RULE CBRLife
- a variant of LifeHistory with three extra ON states
- and corresponding OFF states, for a cyclic color experiment:
- state 0: OFF
- state 1: ON red
- state 2: OFF red trail
- state 3: ON green
- state 4: OFF green trail
- state 5: ON blue
- state 6: OFF blue trail
- state 7: ON yellow
- state 8: OFF yellow trail
- state 9: boundary cell
- Created for Rich Blundell in 2014, for a Ph.D. project
- involving an extended analogy with the Cosmic Background Radiation sky map.
- For some reason the only copy I could find in 2020 had weird colors, so
- I switched them back to standard red, green, blue, yellow
@TABLE n_states:10 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 i={0,1,2,3,4,5,6,7,8,9} var j={0,1,2,3,4,5,6,7,8,9} var k={0,1,2,3,4,5,6,7,8,9} var l={0,1,2,3,4,5,6,7,8,9} var m={0,1,2,3,4,5,6,7,8,9} var n={0,1,2,3,4,5,6,7,8,9} var o={0,1,2,3,4,5,6,7,8,9} var p={0,1,2,3,4,5,6,7,8,9} var q={1,3,5,7} var R={1,3,5,7} var S={1,3,5,7} var T={1,3,5,7}
- boundary cell always stays a boundary cell
9,i,j,k,l,m,n,o,p,9
- anything else that touches a boundary cell dies
- (this prevents un-Life-like accretions at the boundary)
1,9,i,j,k,l,m,n,o,2 2,9,i,j,k,l,m,n,o,2 3,9,i,j,k,l,m,n,o,4 4,9,i,j,k,l,m,n,o,4 5,9,i,j,k,l,m,n,o,6 6,9,i,j,k,l,m,n,o,6 7,9,i,j,k,l,m,n,o,8 8,9,i,j,k,l,m,n,o,8
- 3-neighbour color changes if all neighbors are the same color
i,1,1,1,a,b,c,d,e,1 i,1,1,a,1,b,c,d,e,1 i,1,1,a,b,1,c,d,e,1 i,1,1,a,b,c,1,d,e,1 i,1,1,a,b,c,d,1,e,1 i,1,a,1,b,1,c,d,e,1 i,1,a,1,b,c,1,d,e,1
i,3,3,3,a,b,c,d,e,3 i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,T,d,e,R
- generalized 3-neighbour birth
- q,R,S,T,a,b,c,d,e,R
- q,R,S,a,T,b,c,d,e,S
- q,R,S,a,b,T,c,d,e,T
- q,R,S,a,b,c,T,d,e,R
- q,R,S,a,b,c,d,T,e,S
- q,R,a,S,b,T,c,d,e,T
- q,R,a,S,b,c,T,d,e,R
- generalized 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
- ON states go to the same-colored history state if they don't survive
1,i,j,k,l,m,n,o,p,2 3,i,j,k,l,m,n,o,p,4 5,i,j,k,l,m,n,o,p,6 7,i,j,k,l,m,n,o,p,8
@COLORS
1 255 0 0 ON #1 red 2 96 0 0 OFF #1 red trail 3 0 255 0 ON #2 green 4 0 96 0 OFF #2 green trail 5 0 0 255 ON #3 blue 6 0 0 96 OFF #3 blue trail 7 255 255 0 ON #4 yellow 8 96 96 0 OFF #4 yellow trail 9 96 96 96 gray border