Rule:H3LLcircuit
@RULE H3LLcircuit
3-state P1 universal wiring rule on a hexagonal neighborhood. H - Hexagonal 3 - 3 states LL - Life-like, and making circuit is really hard
Rules are simple.
A cell receives input from W,SE,NE. Then it will send output to E,NW,SW.
If there is 1 input, carry the input. If there are 2 input:
If there is 1 output, ignores one: If the output has an opposite input, carry it. Otherwise, ignores the input on the right. Otherwise, does XOR.
If there are 3 input: does one-hot gate.
There is a special rule that:
Signal can flow backward when the input is 3i0o and output is 0i3o. (i.e. 1-gen delay)
@TABLE n_states:3 neighborhood:hexagonal symmetries:rotate3 var a = {0,1,2} var b = a var c = a var p = {1,2} var q = p var x = p var y = p
- Cut the corners
- 3i0o in
x,2,0,2,0,2,0,2
- 0i3o out
x,0,y,0,p,0,p,y
- The original rules
x,y,a,0,b,0,c,y x,y,0,p,q,0,0,y x,y,0,0,q,p,0,y x,y,p,q,0,0,0,y x,1,a,1,b,0,c,1 x,1,a,2,b,0,c,2 x,2,a,1,b,0,c,2 x,2,a,2,b,0,c,1 x,1,a,1,b,1,c,1 x,1,a,1,b,2,c,2 x,1,a,2,b,2,c,1 x,2,a,2,b,2,c,1
@COLORS 1 128 128 128 2 0 255 255
@ICONS XPM "7 7 2 1" ". c #000000" "m c #FFFFFF" "m......" ".m....." "..m...." "...mmmm" "...m..." "...m..." "...m..."
XPM "15 15 2 1" ". c #000000" "m c #ffffff" "mmmmm.........." "mmmm..........." "mmmm..........." "mmmmm.........." "m..mmm......m.." "....mmm.....mm." ".....mmmmmmmmmm" "......mmmmmmmmm" "......mm....mm." "......mm....m.." "......mm......." "......mm......." "....mmmmmm....." ".....mmmm......" "......mm......."
XPM "31 31 2 1" ". c #000000" "m c #ffffff" "mmmmmmmm......................." "mmmmmmm........................" "mmmmmm........................." "mmmmmmm........................" "mmmmmmmm......................." "mmmmmmmmm......................" "mm.mmmmmmm....................." "m...mmmmmmm...................." ".....mmmmmmm..................." "......mmmmmmm............m....." ".......mmmmmmm...........mm...." "........mmmmmmm..........mmm..." ".........mmmmmmmmmmmmmmmmmmmm.." "..........mmmmmmmmmmmmmmmmmmmm." "...........mmmmmmmmmmmmmmmmmmmm" "............mmmmmmmmmmmmmmmmmm." "............mmmmmmmmmmmmmmmmm.." "............mmmmm........mmm..." "............mmmmm........mm...." "............mmmmm........m....." "............mmmmm.............." "............mmmmm.............." "............mmmmm.............." "............mmmmm.............." "............mmmmm.............." ".........mmmmmmmmmmm..........." "..........mmmmmmmmm............" "...........mmmmmmm............." "............mmmmm.............." ".............mmm..............." "..............m................"