Rule:WireWorld
@RULE WireWorld
A 4-state CA created by Brian Silverman. WireWorld models the flow of currents in wires and makes it relatively easy to build logic gates and other digital circuits.
@TABLE
- Golly rule-table format.
- Each rule: C,N,NE,E,SE,S,SW,W,NW,C'
- Default for transitions not listed: no change
- Variables are bound within each transition.
- For example, if a={1,2} then 4,a,0->a represents
- two transitions: 4,1,0->1 and 4,2,0->2
- (This is why we need to repeat the variables below.
- In this case the method isn't really helping.)
n_states:4 neighborhood:Moore symmetries:rotate8 var a={0,1,2,3} var b={0,1,2,3} var c={0,1,2,3} var d={0,1,2,3} var e={0,1,2,3} var f={0,1,2,3} var g={0,1,2,3} var h={0,1,2,3} var i={0,2,3} var j={0,2,3} var k={0,2,3} var l={0,2,3} var m={0,2,3} var n={0,2,3} 1,a,b,c,d,e,f,g,h,2 2,a,b,c,d,e,f,g,h,3 3,i,j,k,l,m,n,a,1,1 3,i,j,k,l,m,1,n,1,1 3,i,j,k,l,1,m,n,1,1 3,i,j,k,1,l,m,n,1,1
@TREE
num_states=4 num_neighbors=8 num_nodes=28 1 0 2 3 3 1 0 2 3 1 2 0 1 0 0 2 1 1 1 1 3 2 3 2 2 2 1 0 1 1 3 3 5 3 3 4 4 6 4 4 2 0 0 0 0 3 5 8 5 5 4 6 9 6 6 5 7 10 7 7 3 8 8 8 8 4 9 12 9 9 5 10 13 10 10 6 11 14 11 11 4 12 12 12 12 5 13 16 13 13 6 14 17 14 14 7 15 18 15 15 5 16 16 16 16 6 17 20 17 17 7 18 21 18 18 8 19 22 19 19 6 20 20 20 20 7 21 24 21 21 8 22 25 22 22 9 23 26 23 23
@NAMES
- these state names are not yet used by Golly (but are by LifeViewer)
0 empty 1 electron tail 2 electron head 3 copper wire
@COLORS
- same colors used at http://www.quinapalus.com/wi-index.html
0 48 48 48 dark gray 1 0 128 255 light blue 2 255 255 255 white 3 255 128 0 orange
@ICONS
- icon info is in XPM format (order is not important)
XPM /* width height num_colors chars_per_pixel */ "31 31 5 1" /* colors */ ". c #000000" "D c #404040" "C c #808080" "B c #C0C0C0" "W c #FFFFFF" /* pixels */ "..............................." "..............................." "..........DCBWWWWWBCD.........." ".........CWWWWWWWWWWWC........." ".......DWWWWWWWWWWWWWWWD......." "......BWWWWWWWWWWWWWWWWWB......" ".....BWWWWWWWWWWWWWWWWWWWB....." "....DWWWWWWWWWWWWWWWWWWWWWD...." "....WWWWWWWWWWWWWWWWWWWWWWW...." "...CWWWWWWWWWWWWWWWWWWWWWWWC..." "..DWWWWWWWWWWWWWWWWWWWWWWWWWD.." "..CWWWWWWWWWWWWWWWWWWWWWWWWWC.." "..BWWWWWWWWWWWWWWWWWWWWWWWWWB.." "..WWWWWWWWWWWWWWWWWWWWWWWWWWW.." "..WWWWWWWWWWWWWWWWWWWWWWWWWWW.." "..WWWWWWWWWWWWWWWWWWWWWWWWWWW.." "..WWWWWWWWWWWWWWWWWWWWWWWWWWW.." "..WWWWWWWWWWWWWWWWWWWWWWWWWWW.." "..BWWWWWWWWWWWWWWWWWWWWWWWWWB.." "..CWWWWWWWWWWWWWWWWWWWWWWWWWC.." "..DWWWWWWWWWWWWWWWWWWWWWWWWWD.." "...CWWWWWWWWWWWWWWWWWWWWWWWC..." "....WWWWWWWWWWWWWWWWWWWWWWW...." "....DWWWWWWWWWWWWWWWWWWWWWD...." ".....BWWWWWWWWWWWWWWWWWWWB....." "......BWWWWWWWWWWWWWWWWWB......" ".......DWWWWWWWWWWWWWWWD......." ".........CWWWWWWWWWWWC........." "..........DCBWWWWWBCD.........." "..............................." "..............................."
XPM /* width height num_colors chars_per_pixel */ "15 15 4 1" /* colors */ ". c #000000" "D c #404040" "B c #C0C0C0" "W c #FFFFFF" /* pixels */ "..............." "....DBWWWBD...." "...BWWWWWWWB..." "..BWWWWWWWWWB.." ".DWWWWWWWWWWWD." ".BWWWWWWWWWWWB." ".WWWWWWWWWWWWW." ".WWWWWWWWWWWWW." ".WWWWWWWWWWWWW." ".BWWWWWWWWWWWB." ".DWWWWWWWWWWWD." "..BWWWWWWWWWB.." "...BWWWWWWWB..." "....DBWWWBD...." "..............."
XPM /* width height num_colors chars_per_pixel */ "7 7 4 1" /* colors */ ". c #000000" "D c #404040" "E c #E0E0E0" "W c #FFFFFF" /* pixels */ ".DEWED." "DWWWWWD" "EWWWWWE" "WWWWWWW" "EWWWWWE" "DWWWWWD" ".DEWED."