Code: Select all
@RULE DeadlyEnemies
@TABLE
n_states:3
neighborhood:Moore
symmetries:permute
var a={0,1,2}
var b={0,1,2}
var c={0,1,2}
var d={0,1,2}
var e={0,1,2}
var f={0,1,2}
var g={0,1,2}
var h={0,1,2}
var i={1,2}
var j={1,2}
var k={1,2}
# Proximity death
# -- don't actually need these, since those cases are caught at the end
# 1,2,a,b,c,d,e,f,g,0
# 2,1,a,b,c,d,e,f,g,0
# Birth
0,1,1,i,0,0,0,0,0,1
0,2,2,i,0,0,0,0,0,2
# Three-neighbor survival
1,1,1,1,0,0,0,0,0,1
2,2,2,2,0,0,0,0,0,2
# Two-neighbor survival
1,1,1,0,0,0,0,0,0,1
2,2,2,0,0,0,0,0,0,2
#Death
i,a,b,c,d,e,f,g,h,0