Code: Select all
@RULE Ruler
@TABLE
n_states:8
neighborhood:Moore
symmetries:none
#State 1: Output
#State 2: Output Rake
#State 3: Intermediate signal
#State 4: Intermediate signal gun
#State 5: Reflector
#State 6: Reflector puffer
#State 7: Eliminator
var a = {0,1,2,3,4,5,6,7}
var b = a
var c = a
var d = a
var e = a
var f = a
var g = a
var h = a
var i = {0,1,2,3,4,5,6}
var j = {0,2,3,4,5,6,7}
var k = {0,1,2,4,5,6,7}
#Movement
7,a,b,c,d,e,k,f,0,0
7,a,b,c,d,e,3,f,g,3
7,a,b,c,d,e,f,g,3,0
0,a,b,c,d,e,f,g,7,7
1,a,b,c,d,e,f,7,g,0
1,a,b,0,c,d,e,f,i,0
1,a,b,c,d,e,f,g,7,7
0,a,b,1,c,i,d,e,f,1
3,a,b,j,d,e,0,f,g,0
3,a,b,c,d,e,1,f,g,0
3,a,b,1,c,d,e,f,g,1
0,a,b,c,d,e,3,f,g,3
0,a,b,c,d,e,f,2,g,2
0,a,b,c,d,e,6,f,g,6
#Generation
2,a,b,c,d,e,f,g,h,1
0,a,b,c,d,e,4,f,g,3
6,a,b,c,d,e,f,g,h,5
#Reflection
5,a,b,c,d,e,3,f,g,7
@COLORS
0 0 0 0
1 255 255 255
2 0 255 0
3 255 127 0
4 255 0 0
5 127 127 127
6 0 127 255
7 255 255 0
2 is the backrake.
4 is the diagonal gun.