Rule:DragonCurve
@RULE DragonCurve
https://conwaylife.com/forums/viewtopic.php?p=65073#p65554
1: L cell 2: R cell 3: back signal 4: L info signal 5: R info signal 6: end signal 7: anchor cell 8: growth signal delay 9: growth signal advance 10: tail 1 11: tail 2
@TABLE
n_states: 12 neighborhood: Moore symmetries: rotate4
var signal_heads = {3, 4, 5, 6} var forward = {4, 5, 6} var tail = {10, 11} var cell = {1, 2} var not_tail = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
var a = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} var b = a var c = a var d = a var e = a var f = a var g = a var h = a
- new cells are created
11, 8, b, c, d, 4, f, g, h, 1 11, 8, b, c, d, 5, f, g, h, 2 11, 8, b, c, d, 6, f, g, h, 6
0, 11, 4, c, d, e, f, g, 8, 8 0, 11, 6, c, d, e, f, g, 8, 8 0, 11, 8, c, d, e, f, g, 5, 8
- signals advance
0, signal_heads, 0, a, b, c, d, e, 0, signal_heads 11, signal_heads, 0, a, b, c, d, e, 0, signal_heads 0, 9, 0, a, b, c, d, e, 0, 8 8, 10, b, c, d, e, f, g, h, 0
- 3 sends signals back
3, 1, b, c, d, 10, f, g, h, 5 3, 2, b, c, d, 10, f, g, h, 4 3, 7, b, c, d, 10, f, g, h, 6
- heads become tails
9, 6, 8, c, d, e, f, g, h, 6 9, 6, 0, c, d, 0, f, g, 0, 10 9, 1, 8, c, d, e, f, g, h, 10 9, 2, b, c, d, e, f, g, 8, 10 9, 10, b, c, d, e, f, g, h, 10
8, 11, b, c, d, e, f, g, 1, 11 8, 11, 2, c, d, e, f, g, h, 11
8, 6, 10, c, d, e, f, g, 9, 8 8, 1, 3, c, d, e, f, g, 6, 9 8, cell, b, c, d, e, f, g, forward, 8 8, a, b, c, d, e, f, g, h, 9 9, a, b, c, d, e, f, g, h, 11
6, 10, b, 8, d, 9, f, g, h, 1
signal_heads, a, b, c, d, e, f, g, h, 10
- tails die
11, 8, b, 8, d, e, f, g, h, 10 10, 6, b, c, d, e, f, g, 8, 3 tail, 8, b, c, d, e, f, g, h, tail
tail, a, b, c, d, e, f, g, h, 0
- turns
0, 1, 6, c, d, e, f, g, 3, 0
0, 1, forward, c, d, e, f, g, not_tail, forward 0, 1, 0, c, d, e, f, g, forward, 10 0, 2, not_tail, c, d, e, f, g, forward, forward 0, 2, forward, c, d, e, f, g, 0, 10
- 0, 1, 9, c, d, e, f, g, not_tail, 8
- 0, 2, not_tail, c, d, e, f, g, 9, 8
0, 9, 11, c, d, e, f, g, 1, 8 0, 9, 2, c, d, e, f, g, 11, 8
0, 1, 11, 11, d, e, f, g, h, 8 0, 11, 11, 2, d, e, f, g, h, 8
0, 2, 9, c, d, e, f, g, 0, 11 0, 2, 11, c, d, e, f, g, 8, 11 0, 1, 0, c, d, e, f, g, 9, 11 0, 1, 8, c, d, e, f, g, 11, 11 0, 1, 11, c, d, e, f, g, 3, 11
0, 2, 3, c, d, e, f, g, not_tail, 3 0, 2, 0, c, d, e, f, g, 3, 10 0, 1, not_tail, c, d, e, f, g, 3, 3 0, 1, 3, c, d, e, f, g, 0, 10
- turnaround
0, 7, 3, c, d, e, f, g, h, 10
@COLORS
1 120 60 0 2 0 90 90 3 60 200 20 4 200 80 0 5 0 160 160 6 220 20 0 7 130 10 0 8 200 200 200 9 230 230 230 10 60 60 60 11 100 100 100