viewtopic.php?f=11&t=1293&start=75#p11284
and
viewtopic.php?f=11&t=1293&start=100#p11297
here is a simple Golly rule:
Code: Select all
@RULE Ships
@TABLE
# Rule: C,N,NE,E,SE,S,SW,W,NW,C'
# 8,1,2
# 7,0,3
# 6,5,4
# 0 = Background
# 1 = Head
# 2 = Tail
# 3 = Push Block
# 4 = Pull Block
# 5 = Block
n_states:6
neighborhood:Moore
symmetries:rotate4reflect
var a={0,1,2,3,4,5}
var b={0,1,2,3,4,5}
var c={0,1,2,3,4,5}
var d={0,1,2,3,4,5}
var e={0,1,2,3,4,5}
var f={0,1,2,3,4,5}
var g={0,1,2,3,4,5}
var h={0,1,2,3,4,5}
0,3,1,2,a,b,c,d,e,0
0,3,1,a,b,c,d,e,f,3
0,1,3,a,b,c,d,e,f,0
3,1,a,b,c,d,e,f,2,0
1,2,a,3,b,c,d,e,f,2
2,1,3,a,b,c,d,e,f,1
0,1,a,b,c,d,e,f,4,0
0,2,1,4,a,b,c,d,e,5
1,2,a,4,b,c,d,e,f,2
2,1,4,a,b,c,d,e,f,1
4,1,2,a,b,c,d,e,e,0
5,a,2,b,c,d,e,f,g,4
0,1,2,a,b,c,d,e,f,0
0,1,a,b,c,d,e,f,g,1
1,a,b,c,d,e,f,g,h,2
2,a,b,c,d,e,f,g,h,0
3,a,b,c,d,e,f,g,h,3
4,a,b,c,d,e,f,g,h,4
5,a,b,c,d,e,f,g,h,5
0,a,b,c,d,e,f,g,h,0
@COLORS
0 0 0 0
1 255 0 0
2 0 255 0
3 0 0 255
4 255 255 0
5 0 255 255
Here are two example patterns:
Code: Select all
x = 7, y = 42, rule = Ships
4.AB$4.D.C9$3.AB$3.D2.C9$2.AB$2.D3.C9$.AB$.D4.C9$AB$D5.C!
Code: Select all
x = 52, y = 54, rule = Ships
22.C8$23.A$23.B14$22.D8.D19.C$45.BA7$7.AB$C21.D8.D14$30.B$30.A6$31.C!
Brian Prentice