## 10-state Sticky-Based CA (Unfinished)

For discussion of other cellular automata.
cvojan
Posts: 178
Joined: October 7th, 2018, 7:07 pm
Location: Khare Crater, Pluto

### 10-state Sticky-Based CA (Unfinished)

I made a script from scratch based on the Sticky CA , and I tried expanding on the idea of it.

Code: Select all

``````@RULE Rflector

0 vacuum
2 constructing photon
3 forward photon
4 backward photon
5 photon tail
6 anchored reflector
7 c reflect
8 f reflect
9 b reflect

@TABLE
neighborhood:Moore
n_states:10
symmetries: rotate4

var a = {0,2,3,4,5,7,8,9}

var any = {0,1,2,3,4,5,6,7,8,9}
var an1 = {any}
var an2 = {any}
var an3 = {any}
var an4 = {any}
var an5 = {any}
var an6 = {any}
var an7 = {any}

var pho = {2,3,4}
var ph1 = {pho}

var rfl = {0,1,6}
var rf1 = {rfl}
var rf2 = {rfl}
var rf3 = {rfl}
var rf4 = {rfl}
var rf5 = {rfl}

var tai = {0,5}
var ta1 = {0,5}

var rfo = {1,6}
var ro1 = {rfo}
var ro2 = {rfo}
var ro3 = {rfo}
var ro4 = {rfo}
var ro5 = {rfo}

var ph0 = {0,pho}
var p01 = {ph0}
var p02 = {ph0}
var p03 = {ph0}
var p04 = {ph0}
var p05 = {ph0}
var p06 = {ph0}
var p07 = {ph0}

0 1 0 4 0 0 0 0 0 0
0 1 0 0 0 0 0 4 0 0

0 pho 0 rfl rf1 0 rf2 rf3 0 pho

0 7 tai 0 0 0 0 0 tai 2
0 8 tai 0 0 0 0 0 tai 3
0 9 tai 0 0 0 0 0 tai 4

#Building
0 2 0 2 rfl rf1 rf2 rf3 rf4 6

1 3 5 0 0 0 0 0 0 0
1 3 0 0 0 0 0 0 5 0
0 1 3 0 0 0 0 0 0 1
0 1 0 0 0 0 0 0 3 1

1 0 4 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 4 0
0 1 0 4 5 0 0 0 0 1
0 1 0 0 0 0 5 4 0 1

4 5 0 0 1 0 0 0 0 0
4 5 0 0 0 0 1 0 0 0

#Reflection
2 rfo 0 5 0 0 0 0 0 7
2 rfo 0 0 0 0 0 5 0 7
3 6 0 5 0 0 0 0 0 8
3 6 0 0 0 0 0 5 0 8
4 6 0 5 0 0 0 0 0 9
4 6 0 0 0 0 0 5 0 9

#Decay
pho a an1 an2 an3 an4 an5 an6 an7 5
7 any an1 an2 an3 an4 an5 an6 an7 5
8 any an1 an2 an3 an4 an5 an6 an7 5
9 any an1 an2 an3 an4 an5 an6 an7 5
5 any an1 an2 an3 an4 an5 an6 an7 0

@COLORS
1 150 150 150
2 250 0 0
3 0 250 0
4 0 0 250
5 0 150 50
6 0 100 0
``````
Showcasing some of the photon's reactions:

Code: Select all

``````x = 31, y = 27, rule = Rflector
8.2E\$8.E3.E2.2E2.E.E.E\$8.2E.E.E.E.E.E.E.E\$8.E3.E2.E4.E.E2.E4\$8.CE\$A2\$
8.DE3.2E9.E\$4.A8.E.E8.E\$13.2E3.2E2.E.E.E\$13.E.E.E.E.E2.2E\$13.2E3.2E2.
E.E.E.E4\$10.BE3\$7.B\$7.E4.2E\$11.E12.E2.E\$11.E4.E2.2E2.E2.3E\$11.E3.E.E.
E.E2.E2.E\$12.2E2.E2.E.E.E3.E2.E!``````
Here's a pattern that prints out "HI",

Code: Select all

``````x = 123, y = 120, rule = Rflector
14.A8\$18.BE4.2E4.2E4.BE4.2E4.2E4.2E4.BE4.DE4.DE4.2E4.2E4.2E4.BE4.2E4.
BE4.2E4.BEF\$13.F\$12.F\$A\$121.E\$121.E2\$11.B\$11.E2\$121.E\$121.E2\$11.D\$11.
E2\$121.E\$121.E2\$11.D\$11.E2\$121.B\$121.E2\$11.B\$11.E2\$121.D\$121.E2\$11.D\$
11.E2\$121.D\$121.E2\$11.D\$11.E2\$121.E\$121.E2\$11.D\$11.E2\$121.E\$121.E2\$
11.B\$11.E2\$121.E\$121.E2\$11.C\$11.E2\$121.B\$121.E2\$11.C\$11.E2\$121.E\$121.
E2\$11.C\$11.E2\$121.E\$121.E2\$11.C\$11.E2\$121.B\$121.E2\$11.C\$11.E2\$121.E\$
121.E2\$11.B\$11.E2\$121.E\$121.E2\$11.D\$11.E2\$121.E\$121.E2\$11.B\$11.E2\$
121.B\$121.E2\$11.D\$11.E5\$11.B\$11.E3.DE4.DE4.DE4.BE4.CE4.CE4.CE4.CE4.CE
4.BE4.DE4.DE4.BE4.DE4.DE4.DE4.BE\$11.F!
``````
Current/Future plans on it:
• *More compact instructions
*More building photon types
*Making photon guns
conduit rediscoverer