Code: Select all
@RULE WWEJ3-mod
WireWorld Extendable J3 (WWEJ3) in Golly New Rule format.
Design and testing by Mark Jeronimus and Alan Tennant
Table and icons by Mark Jeronimus
Version 1.5 (v20100120.1828)
States from Wireworld:
0: BACKGROUND - Empty space. Structure can be built here but no photons can exist in it.
1: HEAD
2: TAIL
3: WIRE - Photon-conducting structure
Other special states:
4: ISOLATOR - Non-conducting structure (has special functions)
14: ERASE state - Erases all strucure that's (indirectly) connected to it
Other (special) photon states:
5: FORWARD head - extends construction arm
6: BACKWARD head - retracts construction arm (if tailless, removes an entire wire)
7: DELETE head - writes remote cell BACKGROUND (ie. erases any cell)
8: WRITE head - writes remote cell WIRE
9: ISOLATE head - writes remote cell ISOLATOR
10: TOGGLE head - toggles remote cell between ISOLATOR or BACKGROUND
11: LEFT head - bends construction arm left
12: RIGHT head - bends construction arm right
13: READ head - reads remote structure type, non-destructive
Temporary states that appear while running: (don't use during design)
15: TEMP_WRITE - Temporary state to write a remote cell WIRE
16: TEMP_ISOLATE - Temporary state to write a remote cell ISOLATE
17: QUANTUM - Temporary state that collapses to a certain photon type when reading a remote cell
For the 'special functions' and thorough examples of special photons, see WWEJ3test.rle
Contact: mark.jeronimus@gmail.com
@TABLE
#
# Number of rules: 462
#
n_states:18
neighborhood:Moore
symmetries:rotate4
# ALL
var aa={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var ab={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var ac={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var ad={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var ae={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var af={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var ag={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var ah={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
# not a head
var ia={0,2,3,4,14,15,16,17}
var ib={0,2,3,4,14,15,16,17}
var ic={0,2,3,4,14,15,16,17}
var id={0,2,3,4,14,15,16,17}
var ie={0,2,3,4,14,15,16,17}
var if={0,2,3,4,14,15,16,17}
var ig={0,2,3,4,14,15,16,17}
var ih={0,2,3,4,14,15,16,17}
# not a head or ISOLATOR
var nb={0,2,3,14,15,16,17}
var nc={0,2,3,14,15,16,17}
var nd={0,2,3,14,15,16,17}
var ne={0,2,3,14,15,16,17}
var nf={0,2,3,14,15,16,17}
var ng={0,2,3,14,15,16,17}
var nh={0,2,3,14,15,16,17}
# not TAIL
var tb={0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var tc={0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var td={0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var te={0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var tf={0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var tg={0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
var th={0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
# not WIRE (and everything incidentally on it) or QUANTUM
var wa={0,4,14,15,16}
var wb={0,4,14,15,16}
var wc={0,4,14,15,16}
var wd={0,4,14,15,16}
var we={0,4,14,15,16}
var wf={0,4,14,15,16}
var wg={0,4,14,15,16}
var wh={0,4,14,15,16}
# Heads
var ha={1,5,6,7,8,9,10,11,12,13}
var hb={1,5,6,7,8,9,10,11,12,13}
# Structure (and everything incidentally on it), but not BACKGROUND
var sb={1,2,3,4,5,6,7,8,9,10,11,12,13}
# Structure (and everything incidentally on it), but not BACKGROUND or TAIL
var sbit={1,3,5,6,7,8,9,10,11,12,13}
# Structure (and everything incidentally on it), but not BACKGROUND or ISOLATOR
var si={1,2,3,5,6,7,8,9,10,11,12,13}
# TEMPoraries
var temp={15,16}
################ ERASE interactions ################
# ERASE always becomes BACKGROUND
14,aa,ab,ac,ad,ae,af,ag,ah,0
# Neighbors of ERASE become ERASE
sb,14,ab,ac,ad,ae,af,ag,ah,14
sb,aa,14,ac,ad,ae,af,ag,ah,14
sb,aa,ab,14,ad,ae,af,ag,ah,14
sb,aa,ab,ac,14,ae,af,ag,ah,14
sb,aa,ab,ac,ad,14,af,ag,ah,14
################ Head-on photon collisions ################
# FORWARD+FORWARD = write WIRE
0, 5,wb, 0,wd, 5,wf, 0,wh,3
# TOGGLE+TOGGLE = write BACKGROUND
3, 9,wb, 0,wd, 9,wf, 0,wh,0
# ISOLATE+ISOLATE = Toggle WIRE
3,10,wb, 0,wd,10,wf, 0,wh,0
0,10,wb, 0,wd,10,wf, 0,wh,3
# BACKWARD+BACKWARD = write tailless BACKWARD
6, 2,wb, 0,wf, 2,wf, 0,wh,6
# DELETE+DELETE = write ERASE
3, 7,wb, 0,wd, 7,wf, 0,wh,14
################ CONSTRUCTION interactions ################
# FORWARD:
# BACKGROUND becomes WIRE when FORWARD finds a dead end
0, 5,wb,wc,wd,ae,wf,wg,wh,3
# BACKWARD:
# BACKWARD becomes BACKGROUND when it finds a dead end
6, 2,ab,wc,wd,we,wf,wg,ah,0
6, 6,ab,wc,wd,we,wf,wg,ah,0
6,wa, 2,wc,wd,we,wf,wg,wh,0
# TAIL becomes BACKGROUND when tailless retract finds a round corner.
2,wa, 6,wc,wd,we,wf,wg,wh,0
# Erase isolated BACKWARD cells
6,wa, 0,wc, 0,we, 0,wg, 0,0
# BACKWARD becomes BACKGROUND when it erases wire
6,3,tb,tc,td,te,tf,tg,th,0
6,6,tb,tc,td,te,tf,tg,th,0
# DELETE:
# BACKGROUND becomes TEMP_DELETE when DELETE finds a dead end and opposite is a structure
0, 7,wb,wc,ad,si,af,wg,wh,16
0, 7,wb,wc,ad, 4,af,wg,wh,15
# Structure (except BACKGROUND or TAIL) becomes BACKGROUND when next to TEMP_DELETE
4,15,wb,ac,ad,ae,af,ag,wh,0
sbit,16,wb,ac,ad,ae,af,ag,wh,0
# WRITE:
# BACKGROUND becomes TEMP_WRITE when WRITE finds a dead end and opposite is not WIRE
0, 8,wb,wc,ad, 0,af,wg,wh,15
# BACKGROUND becomes WIRE when next to TEMP_WRITE
0,15,wb,ac,ad,ae,af,ag,wh,3
# ISOLATE:
# BACKGROUND becomes TEMP_ISOLATE when WRITE finds a dead end and opposite is not ISOLATOR
0, 9,wb,wc,ad, 0,af,wg,wh,16
# BACKGROUND becomes ISOLATOR when next to TEMP_ISOLATE
0,16,wb,ac,ad,ae,af,ag,wh,4
# TOGGLE:
# BACKGROUND becomes TEMP_DELETE when TOGGLE finds a dead end and opposite is a structure
0,10,wb,wc,ad,si,af,wg,wh,16
0,10,wb,wc,ad, 4,af,wg,wh,15
# BACKGROUND becomes TEMP_ISOLATE when TOGGLE finds a dead end
0,10,wb,wc,ad, 0,af,wg,wh,16
# LEFT:
# BACKGROUND becomes TEMP_WRITE when RIGHT finds a dead end
0,11, 2,wc,ad, 0,wf,wg, 0,15
# TEMP_WRITE becomes WIRE when left of a dead end
15, 2, 3,wc,ad, 0,af,wg, 0,3
# Certian WIRE becomes TAIL when RIGHT goes around a corner (prevent bug)
3,11,wb, 0,wd, 0,wf, 3,wh,2
# RIGHT:
# RIGHT stays RIGHT when it reaches a dead end
# BACKGROUND becomes TEMP_WRITE when LEFT finds a dead end
0,12, 0,wc,wd, 0,af,wg, 2,15
# TEMP_WRITE becomes WIRE when right of a dead end
15, 2, 0,wc,ad, 0,af,wg, 3,3
# Certian WIRE becomes TAIL when RIGHT goes around a corner (prevent bug)
3,12,wb, 3,wd, 0,wf, 0,wh,2
# READ:
# BACKGROUND becomes TEMP_YYY when READ finds a dead end and opposite is XXX
# (determine block type, place a TEMP that writes the same block, so tape doesn't change)
0,13,wb,wc,ad, 3,af,wg,wh,15 # WIRE -> TEMP_WRITE
0,13,wb,wc,ad, 4,af,wg,wh,16 # ISOLATOR -> TEMP_ISOLATE
# READ becomes QUANTUM when it finds a dead end
13, 2,wb,wc,wd, 0,wf,wg,wh,17
# QUANTUM next to TEMP_YYY becomes ZZZ (hence the previous rule)
# (determine return signal by TEMP type)
17,15,wb,wc,wd, 3,wf,wg,wh,1 # TEMP_WRITE -> HEAD
17,16,wb,wc,wd, 3,wf,wg,wh,9 # TEMP_ISOLATE -> ISOLATE
################ Special moves ################
# Special move "A": Advance halfway
3, 1,nb, 4,ad,ae,af, 4,nh, 9
3, 5,nb, 4,ad,ae,af, 4,nh, 10
3, 6,nb, 4,ad,ae,af, 4,nh, 11
3, 7,nb, 4,ad,ae,af, 4,nh, 12
3, 8,nb, 4,ad,ae,af, 4,nh, 13
3, 9,nb, 4,ad,ae,af, 4,nh, 1
3,10,nb, 4,ad,ae,af, 4,nh, 5
3,11,nb, 4,ad,ae,af, 4,nh, 6
3,12,nb, 4,ad,ae,af, 4,nh, 7
3,13,nb, 4,ad,ae,af, 4,nh, 8
# special move "B": Swap LEFT/RIGHT (after A)
3, 1, 4, 4,nd,sb,nf, 4, 4, 9
3, 5, 4, 4,nd,sb,nf, 4, 4, 10
3, 6, 4, 4,nd,sb,nf, 4, 4, 12
3, 7, 4, 4,nd,sb,nf, 4, 4, 11
3, 8, 4, 4,nd,sb,nf, 4, 4, 13
3, 9, 4, 4,nd,sb,nf, 4, 4, 1
3,10, 4, 4,nd,sb,nf, 4, 4, 5
3,11, 4, 4,nd,sb,nf, 4, 4, 6
3,12, 4, 4,nd,sb,nf, 4, 4, 7
3,13, 4, 4,nd,sb,nf, 4, 4, 8
# special move "C": Swap FORWARD/BACKWARD (between A and A)
3, 1, 4, 0, 4,sb, 4, 0, 4, 1
3, 5, 4, 0, 4,sb, 4, 0, 4, 5
3, 6, 4, 0, 4,sb, 4, 0, 4, 6
3, 7, 4, 0, 4,sb, 4, 0, 4, 7
3, 8, 4, 0, 4,sb, 4, 0, 4, 8
3, 9, 4, 0, 4,sb, 4, 0, 4, 9
3,10, 4, 0, 4,sb, 4, 0, 4, 11
3,11, 4, 0, 4,sb, 4, 0, 4, 10
3,12, 4, 0, 4,sb, 4, 0, 4, 12
3,13, 4, 0, 4,sb, 4, 0, 4, 13
# special move "D": Swap WRITE/ISOLATE (between A and B)
3, 1, 4, 4, 4,sb, 4, 4, 4, 13
3, 5, 4, 4, 4,sb, 4, 4, 4, 5
3, 6, 4, 4, 4,sb, 4, 4, 4, 7
3, 7, 4, 4, 4,sb, 4, 4, 4, 6
3, 8, 4, 4, 4,sb, 4, 4, 4, 8
3, 9, 4, 4, 4,sb, 4, 4, 4, 9
3,10, 4, 4, 4,sb, 4, 4, 4, 10
3,11, 4, 4, 4,sb, 4, 4, 4, 11
3,12, 4, 4, 4,sb, 4, 4, 4, 12
3,13, 4, 4, 4,sb, 4, 4, 4, 1
# special move "E": Swap TOGGLE/ISOLATE (after A)
3, 1, 4,ac, 4,sb, 4,ag, 4, 10
3, 5, 4,ac, 4,sb, 4,ag, 4, 9
3, 6, 4,ac, 4,sb, 4,ag, 4, 11
3, 7, 4,ac, 4,sb, 4,ag, 4, 12
3, 8, 4,ac, 4,sb, 4,ag, 4, 13
3, 9, 4,ac, 4,sb, 4,ag, 4, 1
3,10, 4,ac, 4,sb, 4,ag, 4, 5
3,11, 4,ac, 4,sb, 4,ag, 4, 6
3,12, 4,ac, 4,sb, 4,ag, 4, 7
3,13, 4,ac, 4,sb, 4,ag, 4, 8
# special move "E": Swap DELETE/WRITE (between A and +)
3, 1, 4, 4,ad,sb,af, 4, 4, 8
3, 5, 4, 4,ad,sb,af, 4, 4, 9
3, 6, 4, 4,ad,sb,af, 4, 4, 10
3, 7, 4, 4,ad,sb,af, 4, 4, 11
3, 8, 4, 4,ad,sb,af, 4, 4, 12
3, 9, 4, 4,ad,sb,af, 4, 4, 13
3,10, 4, 4,ad,sb,af, 4, 4, 1
3,11, 4, 4,ad,sb,af, 4, 4, 5
3,12, 4, 4,ad,sb,af, 4, 4, 7
3,13, 4, 4,ad,sb,af, 4, 4, 6
# special move "E": Swap DELETE/ISOLATE (between + and B)
3, 1,ab, 4, 4,sb, 4, 4,ah, 8
3, 5,ab, 4, 4,sb, 4, 4,ah, 9
3, 6,ab, 4, 4,sb, 4, 4,ah, 10
3, 7,ab, 4, 4,sb, 4, 4,ah, 11
3, 8,ab, 4, 4,sb, 4, 4,ah, 1
3, 9,ab, 4, 4,sb, 4, 4,ah, 13
3,10,ab, 4, 4,sb, 4, 4,ah, 12
3,11,ab, 4, 4,sb, 4, 4,ah, 5
3,12,ab, 4, 4,sb, 4, 4,ah, 7
3,13,ab, 4, 4,sb, 4, 4,ah, 6
################ normal ISOLATOR interactions ################
ha, 4,wb, 0, 0, 2, 0, 0,wh,ha # bounce
3, 4,ib, 1,id,ne,if,ng,ih,5 # flat, with west
3, 4, 1, 1,id,ne,if,ng,ih,5
3, 4,ib, 1, 1,ne,if,ng,ih,5
3, 4,ib, 1,id, 1,if,ng,ih,5
3, 4,ib, 1,id,ne, 1,ng,ih,5
3, 4,ib, 1,id,ne,if, 1,ih,5
3, 4,ib, 1,id,ne,if,ng, 1,5
3, 4,ib,nc,id,ne,if, 1,ih,5 # flat, with east
3, 4, 1,nc,id,ne,if, 1,ih,5
3, 4,ib,nc, 1,ne,if, 1,ih,5
3, 4,ib,nc,id, 1,if, 1,ih,5
3, 4,ib,nc,id,ne, 1, 1,ih,5
3, 4,ib,nc,id,ne,if, 1, 1,5
3, 4, 1, 0,id,ne,if,ng,ih,5 # corner, with ne
3, 4, 1, 0, 1,ne,if,ng,ih,5
3, 4, 1, 0,id, 1,if,ng,ih,5
3, 4, 1, 0,id,ne, 1,ng,ih,5
3, 4, 1, 0,id,ne,if, 1,ih,5
3, 4, 1, 0,id,ne,if,ng, 1,5
3, 4,ib,nc,id,ne,if, 0, 1,5 # corner, with nw
3, 4, 1,nc,id,ne,if, 0, 1,5
3, 4,ib, 1,id,ne,if, 0, 1,5
3, 4,ib,nc, 1,ne,if, 0, 1,5
3, 4,ib,nc,id, 1,if, 0, 1,5
3, 4,ib,nc,id,ne, 1, 0, 1,5
3, 4,ib, 0, 1,ne,if,ng,ih,5 # corner, with se
3, 4,ib, 0, 1, 1,if,ng,ih,5
3, 4,ib, 0, 1,ne, 1,ng,ih,5
3, 4,ib, 0, 1,ne,if,ng, 1,5
3, 4,ib,nc,id,ne, 1, 0,ih,5 # corner, with sw
3, 4, 1,nc,id,ne, 1, 0,ih,5
3, 4,ib,nc, 1,ne, 1, 0,ih,5
3, 4,ib,nc,id, 1, 1, 0,ih,5
3, 4,ib, 5,id,ne,if,ng,ih,6 # flat, with west
3, 4, 5, 5,id,ne,if,ng,ih,6
3, 4,ib, 5, 5,ne,if,ng,ih,6
3, 4,ib, 5,id, 5,if,ng,ih,6
3, 4,ib, 5,id,ne, 5,ng,ih,6
3, 4,ib, 5,id,ne,if, 5,ih,6
3, 4,ib, 5,id,ne,if,ng, 5,6
3, 4,ib,nc,id,ne,if, 5,ih,6 # flat, with east
3, 4, 5,nc,id,ne,if, 5,ih,6
3, 4,ib,nc, 5,ne,if, 5,ih,6
3, 4,ib,nc,id, 5,if, 5,ih,6
3, 4,ib,nc,id,ne, 5, 5,ih,6
3, 4,ib,nc,id,ne,if, 5, 5,6
3, 4, 5, 0,id,ne,if,ng,ih,6 # corner, with ne
3, 4, 5, 0, 5,ne,if,ng,ih,6
3, 4, 5, 0,id, 5,if,ng,ih,6
3, 4, 5, 0,id,ne, 5,ng,ih,6
3, 4, 5, 0,id,ne,if, 5,ih,6
3, 4, 5, 0,id,ne,if,ng, 5,6
3, 4,ib,nc,id,ne,if, 0, 5,6 # corner, with nw
3, 4, 5,nc,id,ne,if, 0, 5,6
3, 4,ib, 5,id,ne,if, 0, 5,6
3, 4,ib,nc, 5,ne,if, 0, 5,6
3, 4,ib,nc,id, 5,if, 0, 5,6
3, 4,ib,nc,id,ne, 5, 0, 5,6
3, 4,ib, 0, 5,ne,if,ng,ih,6 # corner, with se
3, 4,ib, 0, 5, 5,if,ng,ih,6
3, 4,ib, 0, 5,ne, 5,ng,ih,6
3, 4,ib, 0, 5,ne,if,ng, 5,6
3, 4,ib,nc,id,ne, 5, 0,ih,6 # corner, with sw
3, 4, 5,nc,id,ne, 5, 0,ih,6
3, 4,ib,nc, 5,ne, 5, 0,ih,6
3, 4,ib,nc,id, 5, 5, 0,ih,6
3, 4,ib, 6,id,ne,if,ng,ih,7 # flat, with west
3, 4, 6, 6,id,ne,if,ng,ih,7
3, 4,ib, 6, 6,ne,if,ng,ih,7
3, 4,ib, 6,id, 6,if,ng,ih,7
3, 4,ib, 6,id,ne, 6,ng,ih,7
3, 4,ib, 6,id,ne,if, 6,ih,7
3, 4,ib, 6,id,ne,if,ng, 6,7
3, 4,ib,nc,id,ne,if, 6,ih,7 # flat, with east
3, 4, 6,nc,id,ne,if, 6,ih,7
3, 4,ib,nc, 6,ne,if, 6,ih,7
3, 4,ib,nc,id, 6,if, 6,ih,7
3, 4,ib,nc,id,ne, 6, 6,ih,7
3, 4,ib,nc,id,ne,if, 6, 6,7
3, 4, 6, 0,id,ne,if,ng,ih,7 # corner, with ne
3, 4, 6, 0, 6,ne,if,ng,ih,7
3, 4, 6, 0,id, 6,if,ng,ih,7
3, 4, 6, 0,id,ne, 6,ng,ih,7
3, 4, 6, 0,id,ne,if, 6,ih,7
3, 4, 6, 0,id,ne,if,ng, 6,7
3, 4,ib,nc,id,ne,if, 0, 6,7 # corner, with nw
3, 4, 6,nc,id,ne,if, 0, 6,7
3, 4,ib, 6,id,ne,if, 0, 6,7
3, 4,ib,nc, 6,ne,if, 0, 6,7
3, 4,ib,nc,id, 6,if, 0, 6,7
3, 4,ib,nc,id,ne, 6, 0, 6,7
3, 4,ib, 0, 6,ne,if,ng,ih,7 # corner, with se
3, 4,ib, 0, 6, 6,if,ng,ih,7
3, 4,ib, 0, 6,ne, 6,ng,ih,7
3, 4,ib, 0, 6,ne,if,ng, 6,7
3, 4,ib,nc,id,ne, 6, 0,ih,7 # corner, with sw
3, 4, 6,nc,id,ne, 6, 0,ih,7
3, 4,ib,nc, 6,ne, 6, 0,ih,7
3, 4,ib,nc,id, 6, 6, 0,ih,7
3, 4,ib, 7,id,ne,if,ng,ih,8 # flat, with west
3, 4, 7, 7,id,ne,if,ng,ih,8
3, 4,ib, 7, 7,ne,if,ng,ih,8
3, 4,ib, 7,id, 7,if,ng,ih,8
3, 4,ib, 7,id,ne, 7,ng,ih,8
3, 4,ib, 7,id,ne,if, 7,ih,8
3, 4,ib, 7,id,ne,if,ng, 7,8
3, 4,ib,nc,id,ne,if, 7,ih,8 # flat, with east
3, 4, 7,nc,id,ne,if, 7,ih,8
3, 4,ib,nc, 7,ne,if, 7,ih,8
3, 4,ib,nc,id, 7,if, 7,ih,8
3, 4,ib,nc,id,ne, 7, 7,ih,8
3, 4,ib,nc,id,ne,if, 7, 7,8
3, 4, 7, 0,id,ne,if,ng,ih,8 # corner, with ne
3, 4, 7, 0, 7,ne,if,ng,ih,8
3, 4, 7, 0,id, 7,if,ng,ih,8
3, 4, 7, 0,id,ne, 7,ng,ih,8
3, 4, 7, 0,id,ne,if, 7,ih,8
3, 4, 7, 0,id,ne,if,ng, 7,8
3, 4,ib,nc,id,ne,if, 0, 7,8 # corner, with nw
3, 4, 7,nc,id,ne,if, 0, 7,8
3, 4,ib, 7,id,ne,if, 0, 7,8
3, 4,ib,nc, 7,ne,if, 0, 7,8
3, 4,ib,nc,id, 7,if, 0, 7,8
3, 4,ib,nc,id,ne, 7, 0, 7,8
3, 4,ib, 0, 7,ne,if,ng,ih,8 # corner, with se
3, 4,ib, 0, 7, 7,if,ng,ih,8
3, 4,ib, 0, 7,ne, 7,ng,ih,8
3, 4,ib, 0, 7,ne,if,ng, 7,8
3, 4,ib,nc,id,ne, 7, 0,ih,8 # corner, with sw
3, 4, 7,nc,id,ne, 7, 0,ih,8
3, 4,ib,nc, 7,ne, 7, 0,ih,8
3, 4,ib,nc,id, 7, 7, 0,ih,8
3, 4,ib, 8,id,ne,if,ng,ih,9 # flat, with west
3, 4, 8, 8,id,ne,if,ng,ih,9
3, 4,ib, 8, 8,ne,if,ng,ih,9
3, 4,ib, 8,id, 8,if,ng,ih,9
3, 4,ib, 8,id,ne, 8,ng,ih,9
3, 4,ib, 8,id,ne,if, 8,ih,9
3, 4,ib, 8,id,ne,if,ng, 8,9
3, 4,ib,nc,id,ne,if, 8,ih,9 # flat, with east
3, 4, 8,nc,id,ne,if, 8,ih,9
3, 4,ib,nc, 8,ne,if, 8,ih,9
3, 4,ib,nc,id, 8,if, 8,ih,9
3, 4,ib,nc,id,ne, 8, 8,ih,9
3, 4,ib,nc,id,ne,if, 8, 8,9
3, 4, 8, 0,id,ne,if,ng,ih,9 # corner, with ne
3, 4, 8, 0, 8,ne,if,ng,ih,9
3, 4, 8, 0,id, 8,if,ng,ih,9
3, 4, 8, 0,id,ne, 8,ng,ih,9
3, 4, 8, 0,id,ne,if, 8,ih,9
3, 4, 8, 0,id,ne,if,ng, 8,9
3, 4,ib,nc,id,ne,if, 0, 8,9 # corner, with nw
3, 4, 8,nc,id,ne,if, 0, 8,9
3, 4,ib, 8,id,ne,if, 0, 8,9
3, 4,ib,nc, 8,ne,if, 0, 8,9
3, 4,ib,nc,id, 8,if, 0, 8,9
3, 4,ib,nc,id,ne, 8, 0, 8,9
3, 4,ib, 0, 8,ne,if,ng,ih,9 # corner, with se
3, 4,ib, 0, 8, 8,if,ng,ih,9
3, 4,ib, 0, 8,ne, 8,ng,ih,9
3, 4,ib, 0, 8,ne,if,ng, 8,9
3, 4,ib,nc,id,ne, 8, 0,ih,9 # corner, with sw
3, 4, 8,nc,id,ne, 8, 0,ih,9
3, 4,ib,nc, 8,ne, 8, 0,ih,9
3, 4,ib,nc,id, 8, 8, 0,ih,9
3, 4,ib, 9,id,ne,if,ng,ih,10 # flat, with west
3, 4, 9, 9,id,ne,if,ng,ih,10
3, 4,ib, 9, 9,ne,if,ng,ih,10
3, 4,ib, 9,id, 9,if,ng,ih,10
3, 4,ib, 9,id,ne, 9,ng,ih,10
3, 4,ib, 9,id,ne,if, 9,ih,10
3, 4,ib, 9,id,ne,if,ng, 9,10
3, 4,ib,nc,id,ne,if, 9,ih,10 # flat, with east
3, 4, 9,nc,id,ne,if, 9,ih,10
3, 4,ib,nc, 9,ne,if, 9,ih,10
3, 4,ib,nc,id, 9,if, 9,ih,10
3, 4,ib,nc,id,ne, 9, 9,ih,10
3, 4,ib,nc,id,ne,if, 9, 9,10
3, 4, 9, 0,id,ne,if,ng,ih,10 # corner, with ne
3, 4, 9, 0, 9,ne,if,ng,ih,10
3, 4, 9, 0,id, 9,if,ng,ih,10
3, 4, 9, 0,id,ne, 9,ng,ih,10
3, 4, 9, 0,id,ne,if, 9,ih,10
3, 4, 9, 0,id,ne,if,ng, 9,10
3, 4,ib,nc,id,ne,if, 0, 9,10 # corner, with nw
3, 4, 9,nc,id,ne,if, 0, 9,10
3, 4,ib, 9,id,ne,if, 0, 9,10
3, 4,ib,nc, 9,ne,if, 0, 9,10
3, 4,ib,nc,id, 9,if, 0, 9,10
3, 4,ib,nc,id,ne, 9, 0, 9,10
3, 4,ib, 0, 9,ne,if,ng,ih,10 # corner, with se
3, 4,ib, 0, 9, 9,if,ng,ih,10
3, 4,ib, 0, 9,ne, 9,ng,ih,10
3, 4,ib, 0, 9,ne,if,ng, 9,10
3, 4,ib,nc,id,ne, 9, 0,ih,10 # corner, with sw
3, 4, 9,nc,id,ne, 9, 0,ih,10
3, 4,ib,nc, 9,ne, 9, 0,ih,10
3, 4,ib,nc,id, 9, 9, 0,ih,10
3, 4,ib,10,id,ne,if,ng,ih,11 # flat, with west
3, 4,10,10,id,ne,if,ng,ih,11
3, 4,ib,10,10,ne,if,ng,ih,11
3, 4,ib,10,id,10,if,ng,ih,11
3, 4,ib,10,id,ne,10,ng,ih,11
3, 4,ib,10,id,ne,if,10,ih,11
3, 4,ib,10,id,ne,if,ng,10,11
3, 4,ib,nc,id,ne,if,10,ih,11 # flat, with east
3, 4,10,nc,id,ne,if,10,ih,11
3, 4,ib,nc,10,ne,if,10,ih,11
3, 4,ib,nc,id,10,if,10,ih,11
3, 4,ib,nc,id,ne,10,10,ih,11
3, 4,ib,nc,id,ne,if,10,10,11
3, 4,10, 0,id,ne,if,ng,ih,11 # corner, with ne
3, 4,10, 0,10,ne,if,ng,ih,11
3, 4,10, 0,id,10,if,ng,ih,11
3, 4,10, 0,id,ne,10,ng,ih,11
3, 4,10, 0,id,ne,if,10,ih,11
3, 4,10, 0,id,ne,if,ng,10,11
3, 4,ib,nc,id,ne,if, 0,10,11 # corner, with nw
3, 4,10,nc,id,ne,if, 0,10,11
3, 4,ib,10,id,ne,if, 0,10,11
3, 4,ib,nc,10,ne,if, 0,10,11
3, 4,ib,nc,id,10,if, 0,10,11
3, 4,ib,nc,id,ne,10, 0,10,11
3, 4,ib, 0,10,ne,if,ng,ih,11 # corner, with se
3, 4,ib, 0,10,10,if,ng,ih,11
3, 4,ib, 0,10,ne,10,ng,ih,11
3, 4,ib, 0,10,ne,if,ng,10,11
3, 4,ib,nc,id,ne,10, 0,ih,11 # corner, with sw
3, 4,10,nc,id,ne,10, 0,ih,11
3, 4,ib,nc,10,ne,10, 0,ih,11
3, 4,ib,nc,id,10,10, 0,ih,11
3, 4,ib,11,id,ne,if,ng,ih,12 # flat, with west
3, 4,11,11,id,ne,if,ng,ih,12
3, 4,ib,11,11,ne,if,ng,ih,12
3, 4,ib,11,id,11,if,ng,ih,12
3, 4,ib,11,id,ne,11,ng,ih,12
3, 4,ib,11,id,ne,if,11,ih,12
3, 4,ib,11,id,ne,if,ng,11,12
3, 4,ib,nc,id,ne,if,11,ih,12 # flat, with east
3, 4,11,nc,id,ne,if,11,ih,12
3, 4,ib,nc,11,ne,if,11,ih,12
3, 4,ib,nc,id,11,if,11,ih,12
3, 4,ib,nc,id,ne,11,11,ih,12
3, 4,ib,nc,id,ne,if,11,11,12
3, 4,11, 0,id,ne,if,ng,ih,12 # corner, with ne
3, 4,11, 0,11,ne,if,ng,ih,12
3, 4,11, 0,id,11,if,ng,ih,12
3, 4,11, 0,id,ne,11,ng,ih,12
3, 4,11, 0,id,ne,if,11,ih,12
3, 4,11, 0,id,ne,if,ng,11,12
3, 4,ib,nc,id,ne,if, 0,11,12 # corner, with nw
3, 4,11,nc,id,ne,if, 0,11,12
3, 4,ib,11,id,ne,if, 0,11,12
3, 4,ib,nc,11,ne,if, 0,11,12
3, 4,ib,nc,id,11,if, 0,11,12
3, 4,ib,nc,id,ne,11, 0,11,12
3, 4,ib, 0,11,ne,if,ng,ih,12 # corner, with se
3, 4,ib, 0,11,11,if,ng,ih,12
3, 4,ib, 0,11,ne,11,ng,ih,12
3, 4,ib, 0,11,ne,if,ng,11,12
3, 4,ib,nc,id,ne,11, 0,ih,12 # corner, with sw
3, 4,11,nc,id,ne,11, 0,ih,12
3, 4,ib,nc,11,ne,11, 0,ih,12
3, 4,ib,nc,id,11,11, 0,ih,12
3, 4,ib,12,id,ne,if,ng,ih,13 # flat, with west
3, 4,12,12,id,ne,if,ng,ih,13
3, 4,ib,12,12,ne,if,ng,ih,13
3, 4,ib,12,id,12,if,ng,ih,13
3, 4,ib,12,id,ne,12,ng,ih,13
3, 4,ib,12,id,ne,if,12,ih,13
3, 4,ib,12,id,ne,if,ng,12,13
3, 4,ib,nc,id,ne,if,12,ih,13 # flat, with east
3, 4,12,nc,id,ne,if,12,ih,13
3, 4,ib,nc,12,ne,if,12,ih,13
3, 4,ib,nc,id,12,if,12,ih,13
3, 4,ib,nc,id,ne,12,12,ih,13
3, 4,ib,nc,id,ne,if,12,12,13
3, 4,12, 0,id,ne,if,ng,ih,13 # corner, with ne
3, 4,12, 0,12,ne,if,ng,ih,13
3, 4,12, 0,id,12,if,ng,ih,13
3, 4,12, 0,id,ne,12,ng,ih,13
3, 4,12, 0,id,ne,if,12,ih,13
3, 4,12, 0,id,ne,if,ng,12,13
3, 4,ib,nc,id,ne,if, 0,12,13 # corner, with nw
3, 4,12,nc,id,ne,if, 0,12,13
3, 4,ib,12,id,ne,if, 0,12,13
3, 4,ib,nc,12,ne,if, 0,12,13
3, 4,ib,nc,id,12,if, 0,12,13
3, 4,ib,nc,id,ne,12, 0,12,13
3, 4,ib, 0,12,ne,if,ng,ih,13 # corner, with se
3, 4,ib, 0,12,12,if,ng,ih,13
3, 4,ib, 0,12,ne,12,ng,ih,13
3, 4,ib, 0,12,ne,if,ng,12,13
3, 4,ib,nc,id,ne,12, 0,ih,13 # corner, with sw
3, 4,12,nc,id,ne,12, 0,ih,13
3, 4,ib,nc,12,ne,12, 0,ih,13
3, 4,ib,nc,id,12,12, 0,ih,13
3, 4,ib,13,id,ne,if,ng,ih,1 # flat, with west
3, 4,13,13,id,ne,if,ng,ih,1
3, 4,ib,13,13,ne,if,ng,ih,1
3, 4,ib,13,id,13,if,ng,ih,1
3, 4,ib,13,id,ne,13,ng,ih,1
3, 4,ib,13,id,ne,if,13,ih,1
3, 4,ib,13,id,ne,if,ng,13,1
3, 4,ib,nc,id,ne,if,13,ih,1 # flat, with east
3, 4,13,nc,id,ne,if,13,ih,1
3, 4,ib,nc,13,ne,if,13,ih,1
3, 4,ib,nc,id,13,if,13,ih,1
3, 4,ib,nc,id,ne,13,13,ih,1
3, 4,ib,nc,id,ne,if,13,13,1
3, 4,13, 0,id,ne,if,ng,ih,1 # corner, with ne
3, 4,13, 0,13,ne,if,ng,ih,1
3, 4,13, 0,id,13,if,ng,ih,1
3, 4,13, 0,id,ne,13,ng,ih,1
3, 4,13, 0,id,ne,if,13,ih,1
3, 4,13, 0,id,ne,if,ng,13,1
3, 4,ib,nc,id,ne,if, 0,13,1 # corner, with nw
3, 4,13,nc,id,ne,if, 0,13,1
3, 4,ib,13,id,ne,if, 0,13,1
3, 4,ib,nc,13,ne,if, 0,13,1
3, 4,ib,nc,id,13,if, 0,13,1
3, 4,ib,nc,id,ne,13, 0,13,1
3, 4,ib, 0,13,ne,if,ng,ih,1 # corner, with se
3, 4,ib, 0,13,13,if,ng,ih,1
3, 4,ib, 0,13,ne,13,ng,ih,1
3, 4,ib, 0,13,ne,if,ng,13,1
3, 4,ib,nc,id,ne,13, 0,ih,1 # corner, with sw
3, 4,13,nc,id,ne,13, 0,ih,1
3, 4,ib,nc,13,ne,13, 0,ih,1
3, 4,ib,nc,id,13,13, 0,ih,1
################ NORMAL interactions (fallback behavior) ################
# WIRE becomes HEAD when one neighbor is HEAD
3,ha,ib,ic,id,ie,if,ig,ih,ha
3,ia,ha,ic,id,ie,if,ig,ih,ha
# normal propagation of HEAD (two identical heads stay the same)
3,ha,ha,ic,id,ie,if,ig,ih,ha
3,ia,ha,ha,id,ie,if,ig,ih,ha
3,ha,ib,ha,id,ie,if,ig,ih,ha
3,ia,ha,ic,ha,ie,if,ig,ih,ha
3,ha,ib,ic,ha,ie,if,ig,ih,ha
3,ia,ha,ic,id,ha,if,ig,ih,ha
3,ha,ib,ic,id,ha,if,ig,ih,ha
3,ia,ha,ic,id,ie,ha,ig,ih,ha
# normal propagation of HEAD (two different heads reset to HEAD)
3,ha,hb,ic,id,ie,if,ig,ih,1
3,ia,ha,hb,id,ie,if,ig,ih,1
3,ha,ib,hb,id,ie,if,ig,ih,1
3,ia,ha,ic,hb,ie,if,ig,ih,1
3,ha,ib,ic,hb,ie,if,ig,ih,1
3,ia,ha,ic,id,hb,if,ig,ih,1
3,ha,ib,ic,id,hb,if,ig,ih,1
3,ia,ha,ic,id,ie,hb,ig,ih,1
# Heads (except READ) always becomes TAIL
ha,aa,ab,ac,ad,ae,af,ag,ah,2
# TAIL always becomes WIRE
2,aa,ab,ac,ad,ae,af,ag,ah,3
# TEMPoraries always becomes BACKGROUND
temp,aa,ab,ac,ad,ae,af,ag,ah,0
# QUANTUM that hasn't collapsed becomes WIRE again
17,aa,ab,ac,ad,ae,af,ag,ah,3
@COLORS
# Structural states
0 0 0 0 BACKGROUND
3 144 90 45 WIRE
4 192 192 192 ISOLATOR
# Photon states
2 144 128 112 TAIL
1 255 255 255 SIGNAL (white)
5 255 0 0 FORWARD head (red)
6 255 128 0 RETRACT head (orange)
7 255 255 0 DELETE head (yellow)
8 0 255 0 WRITE head (green)
9 0 255 208 ISOLATE head (aqua)
10 0 192 255 TOGGLE head (sky)
11 0 0 255 LEFT head (blue)
12 192 0 255 RIGHT head (violet)
13 255 64 160 READ head (pink)
# Automatically created states
14 112 128 144 ERASE state
15 0 128 0 TEMP_WRITE state (dark green)
16 0 96 128 TEMP_ISOLATE state (dark aqua)
17 160 0 80 TEMP_READ state (dark pink)
@ICONS
XPM
/* width height num_colors chars_per_pixel */
"31 527 5 1"
/* colors */
". c #FFFFFF"
"1 c #C0C0C0"
"2 c #808080"
"3 c #404040"
"4 c #000000"
/* icon for state 1 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 2 */
"..............................."
"..............................."
"..............................."
"..............................."
"....4442...............2444...."
"....44442.............24444...."
"....444442...........244444...."
"....2444442.........2444442...."
".....2444442.......2444442....."
"......2444442.....2444442......"
".......2444442...2444442......."
"........2444442.2444442........"
".........2444443444442........."
"..........24444444442.........."
"...........244444442..........."
"............3444443............"
"...........244444442..........."
"..........24444444442.........."
".........2444443444442........."
"........2444442.2444442........"
".......2444442...2444442......."
"......2444442.....2444442......"
".....2444442.......2444442....."
"....2444442.........2444442...."
"....444442...........244444...."
"....44442.............24444...."
"....4442...............2444...."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 3 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 4 */
"..............................."
"..............................."
"..............................."
"..............................."
"....44444444.......44444444...."
"....44444444.......44444444...."
"....44444444.......44444444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444....444444444....444...."
"...........444444444..........."
"...........444444444..........."
"...........444444444..........."
"...........444444444..........."
"...........444444444..........."
"...........444444444..........."
"...........444444444..........."
"....444....444444444....444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....44444444.......44444444...."
"....44444444.......44444444...."
"....44444444.......44444444...."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
".............44444............."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 6 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 7 */
"..............................."
"..............................."
"..............................."
"..............................."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....444.................444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 8 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"........444444444444444........"
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 9 */
"..............................."
"..............................."
"..............................."
"..............................."
"....44444444.......44444444...."
"....44444444.......44444444...."
"....44444444.......44444444...."
"....44444444.......44444444...."
"....4444...............4444...."
"....4444...............4444...."
"....4444...............4444...."
"....4444...............4444...."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"....4444...............4444...."
"....4444...............4444...."
"....4444...............4444...."
"....4444...............4444...."
"....44444444.......44444444...."
"....44444444.......44444444...."
"....44444444.......44444444...."
"....44444444.......44444444...."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 10 */
"..............................."
"..............................."
"..............................."
"..............................."
"...........123444321..........."
"..........34444444443.........."
"........244444444444442........"
".......34444324442344443......."
"......24444...444...44442......"
"......4443....444....3444......"
".....3444.....444.....4443....."
"....1444......444......4441...."
"....2443......444......3442...."
"....3442......444......2443...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....44444444444444444444444...."
"....3442......444......2443...."
"....2443......444......3442...."
"....1444......444......4441...."
".....3444.....444.....4443....."
"......4443....444....3444......"
"......24444...444...44442......"
".......34444324442344443......."
"........244444444444442........"
"..........34444444443.........."
"...........123444321..........."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 11 */
"..............................."
"..............................."
"..............................."
"............2.................."
"...........24.................."
"..........244.................."
".........2444.................."
"........24444.................."
".......244444.................."
"......244444444432............."
".....244444444444442..........."
"....14444444444444443.........."
".....24444444444444442........."
"......2444444444444444........."
".......244444...3444442........"
"........24444....344443........"
".........2444.....44444........"
"..........244.....44444........"
"...........24.....44444........"
"............2.....44444........"
"..................44444........"
"..................44444........"
"..................44444........"
"..................44444........"
"..................44444........"
"..................44444........"
"..................44444........"
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 12 */
"..............................."
"..............................."
"..............................."
"..................2............"
"..................42..........."
"..................442.........."
"..................4442........."
"..................44442........"
"..................444442......."
".............234444444442......"
"...........244444444444442....."
"..........34444444444444441...."
".........24444444444444442....."
".........4444444444444442......"
"........2444443...444442......."
"........344443....44442........"
"........44444.....4442........."
"........44444.....442.........."
"........44444.....42..........."
"........44444.....2............"
"........44444.................."
"........44444.................."
"........44444.................."
"........44444.................."
"........44444.................."
"........44444.................."
"........44444.................."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 13 */
"..............................."
"..............................."
"..............................."
"..............................."
"..........34444444443.........."
"........244444444444442........"
".......24444443234444442......."
".......4444441...1444444......."
"......3444442.....2444443......"
"......444444.......444444......"
"......444444.......444444......"
"......444444.......444444......"
"..................1444444......"
"..................2444442......"
".................1444444......."
".................444444........"
"................444444........."
"...............444444.........."
"..............4444441.........."
".............2444442..........."
".............4444441..........."
".............444444............"
"..............................."
"..............................."
".............444444............"
".............444444............"
".............444444............"
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 14 */
"4444444444444444444444444444444"
"444442...................244444"
"4444442.................2444444"
"44444442...............24444444"
"444444442.............244444444"
"4244444442...........2444444424"
"4.244444442.........244444442.4"
"4..244444442.......244444442..4"
"4...24444444.......44444442...4"
"4....2444444.......4444442....4"
"4.....244444.......444442.....4"
"4......24444.......44442......4"
"4.............................4"
"4.............................4"
"4.............................4"
"4.............................4"
"4.............................4"
"4.............................4"
"4.............................4"
"4......24444.......44442......4"
"4.....244444.......444442.....4"
"4....2444444.......4444442....4"
"4...24444444.......44444442...4"
"4..244444442.......244444442..4"
"4.244444442.........244444442.4"
"4244444442...........2444444424"
"444444442.............244444444"
"44444442...............24444444"
"4444442.................2444444"
"444442...................244444"
"4444444444444444444444444444444"
/* icon for state 15 */
"..............................."
"..............................."
"....24444444444444444444442...."
"...4444444444444444444444444..."
"..2441...................1442.."
"..441.....................144.."
"..44.......................44.."
"..44.......................44.."
"..44.......................44.."
"..44.......................44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44......44444444444......44.."
"..44.......................44.."
"..44.......................44.."
"..44.......................44.."
"..44.......................44.."
"..441.....................144.."
"..2441...................1442.."
"...4444444444444444444444444..."
"....24444444444444444444442...."
"..............................."
"..............................."
/* icon for state 16 */
"..............................."
"..............................."
"....24444444444444444444442...."
"...4444444444444444444444444..."
"..2441...................1442.."
"..441.....................144.."
"..44.......................44.."
"..44...444444.....444444...44.."
"..44...444444.....444444...44.."
"..44...444444.....444444...44.."
"..44...444...........444...44.."
"..44...444...........444...44.."
"..44...444...........444...44.."
"..44.......................44.."
"..44.......................44.."
"..44.......................44.."
"..44.......................44.."
"..44.......................44.."
"..44...444...........444...44.."
"..44...444...........444...44.."
"..44...444...........444...44.."
"..44...444444.....444444...44.."
"..44...444444.....444444...44.."
"..44...444444.....444444...44.."
"..44.......................44.."
"..441.....................144.."
"..2441...................1442.."
"...4444444444444444444444444..."
"....24444444444444444444442...."
"..............................."
"..............................."
/* icon for state 17 */
"..............................."
"..............................."
"....24444444444444444444442...."
"...4444444444444444444444444..."
"..2441...................1442.."
"..441.....................144.."
"..44.......344444443.......44.."
"..44.....2444444444442.....44.."
"..44....244444444444442....44.."
"..44....444443...344444....44.."
"..44...344443.....344443...44.."
"..44...44444.......44444...44.."
"..44...44444.......44444...44.."
"..44...............44444...44.."
"..44..............144443...44.."
"..44..............44444....44.."
"..44............144443.....44.."
"..44...........344441......44.."
"..44..........44444........44.."
"..44.........344441........44.."
"..44.........44444.........44.."
"..44.......................44.."
"..44.......................44.."
"..44.........44444.........44.."
"..44.........44444.........44.."
"..441.....................144.."
"..2441...................1442.."
"...4444444444444444444444444..."
"....24444444444444444444442...."
"..............................."
"..............................."
XPM
/* width height num_colors chars_per_pixel */
"15 255 5 1"
/* colors */
". c #FFFFFF"
"1 c #C0C0C0"
"2 c #808080"
"3 c #404040"
"4 c #000000"
/* icon for state 1 */
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
/* icon for state 2 */
"..............."
"..............."
"..44.......44.."
"..444.....444.."
"...444...444..."
"....4441444...."
".....44444....."
".....14441....."
".....44444....."
"....4441444...."
"...444...444..."
"..444.....444.."
"..44.......44.."
"..............."
"..............."
/* icon for state 3 */
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
/* icon for state 4 */
"..............."
"..............."
"..4444...4444.."
"..4444...4444.."
"..44.......44.."
"..44.......44.."
"......444......"
"......444......"
"......444......"
"..44.......44.."
"..44.......44.."
"..4444...4444.."
"..4444...4444.."
"..............."
"..............."
/* icon for state 5 */
"..............."
"..............."
"......444......"
"......444......"
"......444......"
"......444......"
"..44444444444.."
"..44444444444.."
"..44444444444.."
"......444......"
"......444......"
"......444......"
"......444......"
"..............."
"..............."
/* icon for state 6 */
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
"..44444444444.."
"..44444444444.."
"..44444444444.."
"..............."
"..............."
"..............."
"..............."
"..............."
"..............."
/* icon for state 7 */
"..............."
"..............."
"..44444444444.."
"..4.........4.."
"..4.........4.."
"..4.........4.."
"..4.........4.."
"..4.........4.."
"..4.........4.."
"..4.........4.."
"..4.........4.."
"..4.........4.."
"..44444444444.."
"..............."
"..............."
/* icon for state 8 */
"..............."
"..............."
"..............."
"..............."
"....4444444...."
"....4444444...."
"....4444444...."
"....4444444...."
"....4444444...."
"....4444444...."
"....4444444...."
"..............."
"..............."
"..............."
"..............."
/* icon for state 9 */
"..............."
"..............."
"..4444...4444.."
"..4444...4444.."
"..44.......44.."
"..44.......44.."
"..............."
"..............."
"..............."
"..44.......44.."
"..44.......44.."
"..4444...4444.."
"..4444...4444.."
"..............."
"..............."
/* icon for state 10 */
"..............."
"..............."
".....24442....."
"...144242441..."
"...42..4..24..."
"..24...4...42.."
"..42...4...24.."
"..44444444444.."
"..42...4...24.."
"..24...4...42.."
"...42..4..24..."
"...144242441..."
".....24442....."
"..............."
"..............."
/* icon for state 11 */
"..............."
"..............."
"......2........"
".....24........"
"....244........"
"...2444443....."
"..144444444...."
"...244444443..."
"....244.1444..."
".....24..444..."
"......2..444..."
".........444..."
".........444..."
"..............."
"..............."
/* icon for state 12 */
"..............."
"..............."
"........2......"
"........42....."
"........442...."
".....3444442..."
"....444444441.."
"...344444442..."
"...4441.442...."
"...444..42....."
"...444..2......"
"...444........."
"...444........."
"..............."
"..............."
/* icon for state 13 */
"..............."
"..............."
"....3444443...."
"...3442.2443..."
"...444...444..."
"...444...444..."
"........2442..."
".......2442...."
"......2442....."
"......444......"
"..............."
"..............."
"......444......"
"......444......"
"..............."
/* icon for state 14 */
"442.........244"
"4442.......2444"
"24442.....24442"
".24442...24442."
"..2444...4442.."
"...244...442..."
"..............."
"..............."
"..............."
"...244...442..."
"..2444...4442.."
".24442...24442."
"24442.....24442"
"4442.......2444"
"442.........244"
/* icon for state 15 */
"..............."
".1444444444441."
".43.........34."
".4...........4."
".4...........4."
".4...44444...4."
".4...44444...4."
".4...44444...4."
".4...44444...4."
".4...44444...4."
".4...........4."
".4...........4."
".43.........34."
".1444444444441."
"..............."
/* icon for state 16 */
"..............."
"..34444444443.."
".33.........33."
".4.4444.4444.4."
".4.4444.4444.4."
".4.44.....44.4."
".4.44.....44.4."
".4...........4."
".4.44.....44.4."
".4.44.....44.4."
".4.4444.4444.4."
".4.4444.4444.4."
".33.........33."
"..34444444443.."
"..............."
/* icon for state 17 */
"..............."
"..34444444443.."
".33.........33."
".4...34443...4."
".4..342.243..4."
".4..44...44..4."
".4.......44..4."
".4......442..4."
".4....1443...4."
".4....444....4."
".4...........4."
".4....444....4."
".33.........33."
"..34444444443.."
"..............."
XPM
/* width height num_colors chars_per_pixel */
"7 119 4 1"
/* colors */
". c #FFFFFF"
"1 c #C0C0C0"
"3 c #404040"
"4 c #000000"
/* icon for state 1 */
"......."
"......."
"......."
"......."
"......."
"......."
"......."
/* icon for state 2 */
"......."
".3...3."
"..313.."
"..141.."
"..313.."
".3...3."
"......."
/* icon for state 3 */
"......."
"......."
"......."
"......."
"......."
"......."
"......."
/* icon for state 4 */
"......."
".44.44."
".4...4."
"...4..."
".4...4."
".44.44."
"......."
/* icon for state 5 */
"......."
"...4..."
"...4..."
".44444."
"...4..."
"...4..."
"......."
/* icon for state 6 */
"......."
"......."
"......."
".44444."
"......."
"......."
"......."
/* icon for state 7 */
"......."
".44444."
".4...4."
".4...4."
".4...4."
".44444."
"......."
/* icon for state 8 */
"......."
"......."
"..444.."
"..444.."
"..444.."
"......."
"......."
/* icon for state 9 */
"......."
".44.44."
".4...4."
"......."
".4...4."
".44.44."
"......."
/* icon for state 10 */
"......."
".14441."
".4.4.4."
".44444."
".4.4.4."
".14441."
"......."
/* icon for state 11 */
"......."
"..4...."
".3443.."
"..4.4.."
"....4.."
"....4.."
"......."
/* icon for state 12 */
"......."
"....4.."
"..3443."
"..4.4.."
"..4...."
"..4...."
"......."
/* icon for state 13 */
"......."
"..431.."
"...14.."
"...31.."
"......."
"...4..."
"......."
/* icon for state 14 */
"43...34"
"343.343"
".34.43."
"......."
".34.43."
"343.343"
"43...34"
/* icon for state 15 */
"1444441"
"4.....4"
"4.444.4"
"4.444.4"
"4.444.4"
"4.....4"
"1444441"
/* icon for state 16 */
"1444441"
"4.....4"
"4.4.4.4"
"4.....4"
"4.4.4.4"
"4.....4"
"1444441"
/* icon for state 17 */
"1444441"
"4.431.4"
"4..14.4"
"4..31.4"
"4.....4"
"4..4..4"
"1444441"