Rule:Pressure

From LifeWiki
Revision as of 16:16, 20 January 2020 by Ian07 (talk | contribs) (from https://github.com/gollygang/ruletablerepository)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

@RULE Pressure

@TABLE

n_states:12 neighborhood:Moore symmetries:none

  1. Simulates pressure of a gas in a chamber. Speed c spaceships move
  2. around inside; when one hits a wall, it moves the wall outward.
  3. Number of spaceships never changes.
  4. Dean Hickerson, 1/22-2/26/2010
                                                          1. States #############################
  1. 1 spaceship N
  2. 2 spaceship E
  3. 3 spaceship S
  4. 4 spaceship W
  5. 5 overlapping spaceships N & S
  6. 6 overlapping spaceships E & W
  7. 7 brick
  8. 8 brick moving N
  9. 9 brick moving E
  10. 10 brick moving S
  11. 11 brick moving W

var N={1} var E={2} var S={3} var W={4} var NS={5} var EW={6} var Ns={1,5} var Ew={2,6} var Sn={3,5} var We={4,6} var ship={1,2,3,4,5,6} var notship0={0,7,8,9,10,11} var notship1={0,7,8,9,10,11} var notship2={0,7,8,9,10,11} var notNs0={0,2,3,4,6,7,8,9,10,11} var notNs1={0,2,3,4,6,7,8,9,10,11} var notEw0={0,1,3,4,5,7,8,9,10,11} var notEw1={0,1,3,4,5,7,8,9,10,11} var notSn0={0,1,2,4,6,7,8,9,10,11} var notSn1={0,1,2,4,6,7,8,9,10,11} var notWe0={0,1,2,3,5,7,8,9,10,11} var notWe1={0,1,2,3,5,7,8,9,10,11} var B={7} var BN={8} var BE={9} var BS={10} var BW={11} var Bp0={7,8,9,10,11} var Bp1={7,8,9,10,11} var n={0,1,2,3,4,5,6,7,8,9,10,11} var m={0,1,2,3,4,5,6,7,8,9,10,11} var e={0,1,2,3,4,5,6,7,8,9,10,11} var f={0,1,2,3,4,5,6,7,8,9,10,11} var s={0,1,2,3,4,5,6,7,8,9,10,11} var h={0,1,2,3,4,5,6,7,8,9,10,11} var w={0,1,2,3,4,5,6,7,8,9,10,11} var a={0,1,2,3,4,5,6,7,8,9,10,11} var not0a={1,2,3,4,5,6,7,8,9,10,11} var not0b={1,2,3,4,5,6,7,8,9,10,11} var not0c={1,2,3,4,5,6,7,8,9,10,11} var notB={0,1,2,3,4,5,6,8,9,10,11} var notBN={0,2,3,4,5,6,8,9,10,11} var notBE={0,1,3,4,5,6,8,9,10,11} var notBS={0,1,2,4,5,6,8,9,10,11} var notBW={0,1,2,3,5,6,8,9,10,11}

                                        1. Start of spaceship rules ####################
  1. Spaceship leaves cell if cell ahead is empty and no spaceships are aimed at it from the sides.

N,0,notWe0,e,f,s,h,w,notEw0,0 E,n,notSn0,0,notNs0,s,h,w,a,0 S,n,m,e,notWe0,0,notEw0,w,a,0 W,n,m,e,f,s,notNs0,0,notSn0,0

NS,0,notWe0,e,notWe1,0,notEw0,w,notEw1,0 EW,n,notSn1,0,notNs1,s,notNs0,0,notSn0,0

NS,0,notWe0,e,f,s,h,w,notEw0,3 # S (N leaves) EW,n,notSn0,0,notNs0,s,h,w,a,4 # W NS,n,m,e,notWe0,0,notEw0,w,a,1 # N EW,n,m,e,f,s,notNs0,0,notSn0,2 # E

  1. Otherwise spaceship rotates.

NS,n,m,e,f,s,h,w,a,6 # EW EW,n,m,e,f,s,h,w,a,5 # NS

  1. It reverses if there's a brick in front.

N,Bp0,m,e,f,s,h,w,a,3 # S E,n,m,Bp0,f,s,h,w,a,4 # W S,n,m,e,f,Bp0,h,w,a,1 # N W,n,m,e,f,s,h,Bp0,a,2 # E

  1. It turns right or left if exactly one side cell is empty.

N,n,m,0,f,s,h,not0a,a,2 # E E,not0a,m,e,f,0,h,w,a,3 # S S,n,m,not0a,f,s,h,0,a,4 # W W,0,m,e,f,not0a,h,w,a,1 # N

N,n,m,not0a,f,s,h,0,a,4 # W E,0,m,e,f,not0a,h,w,a,1 # N S,n,m,0,f,s,h,not0a,a,2 # E W,not0a,m,e,f,0,h,w,a,3 # S

  1. It turns right or left if exactly one cell diagonally ahead is empty.

N,n,0,e,f,s,h,w,not0a,2 # E E,n,not0a,e,0,s,h,w,a,3 # S S,n,m,e,not0a,s,0,w,a,4 # W W,n,m,e,f,s,not0a,w,0,1 # N

N,n,not0a,e,f,s,h,w,0,4 # W E,n,0,e,not0a,s,h,w,a,1 # N S,n,m,e,0,s,not0a,w,a,2 # E W,n,m,e,f,s,0,w,not0a,3 # S

  1. Otherwise it reverses.

N,n,m,e,f,s,h,w,a,3 # S E,n,m,e,f,s,h,w,a,4 # W S,n,m,e,f,s,h,w,a,1 # N W,n,m,e,f,s,h,w,a,2 # E


  1. Space stays empty if spaceships are aimed at it from 2 adjacent sides.

0,Sn,m,We,f,s,h,w,a,0 0,n,m,We,f,Ns,h,w,a,0 0,n,m,e,f,Ns,h,Ew,a,0 0,Sn,m,e,f,s,h,Ew,a,0

  1. Space becomes double spaceship if exactly 2 spaceships are aimed at it, from opposite directions.

0,Sn,m,notWe0,f,Ns,h,notEw0,a,6 # EW (both rotate) 0,notSn0,m,We,f,notNs0,h,Ew,a,5 # NS

  1. Space becomes spaceship if exactly one is aimed at it.
  1. Spaceship turns right or left if there are nonempty cells ahead and on exactly one side.

0,Sn,m,not0a,f,not0c,h,0,a,4 # W 0,0,m,We,f,not0a,h,not0c,a,1 # N 0,not0a,m,0,f,Ns,h,not0c,a,2 # E 0,not0a,m,not0c,f,0,h,Ew,a,3 # S

0,Sn,m,0,f,not0a,h,not0c,a,2 # E 0,not0a,m,We,f,0,h,not0b,a,3 # S 0,not0a,m,not0c,f,Ns,h,0,a,4 # W 0,0,m,not0a,f,not0c,h,Ew,a,1 # N

  1. Spaceship reverses if there's a nonempty cell directly ahead.

0,Sn,m,e,f,not0a,h,w,a,1 # N 0,n,m,We,f,s,h,not0a,a,2 # E 0,not0a,m,e,f,Ns,h,w,a,3 # S 0,n,m,not0a,f,s,h,Ew,a,4 # W

  1. It turns right or left if there's exactly one nonempty side cell.

0,Sn,m,0,f,0,h,not0a,a,2 # E 0,not0a,m,We,f,0,h,0,a,3 # S 0,0,m,not0a,f,Ns,h,0,a,4 # W 0,0,m,0,f,not0a,h,Ew,a,1 # N

0,Sn,m,not0a,f,0,h,0,a,4 # W 0,0,m,We,f,not0a,h,0,a,1 # N 0,0,m,0,f,Ns,h,not0a,a,2 # E 0,not0a,m,0,f,0,h,Ew,a,3 # S

  1. It reverses if both side cells are nonempty.

0,Sn,m,not0a,f,0,h,not0b,a,1 # N 0,not0a,m,We,f,not0b,h,0,a,2 # E 0,0,m,not0a,f,Ns,h,not0b,a,3 # S 0,not0a,m,0,f,not0b,h,Ew,a,4 # W

  1. Otherwise it goes straight.

0,Sn,m,0,f,0,h,0,a,3 # S 0,0,m,We,f,0,h,0,a,4 # W 0,0,m,0,f,Ns,h,0,a,1 # N 0,0,m,0,f,0,h,Ew,a,2 # E

                                    1. Start of brick cleanup rules ##################
  1. Isolated brick dies.

B,0,0,0,0,0,0,0,0,0

  1. Brick touching 1 other brick dies.

B,B,0,0,0,0,0,0,0,0 B,0,B,0,0,0,0,0,0,0 B,0,0,B,0,0,0,0,0,0 B,0,0,0,B,0,0,0,0,0 B,0,0,0,0,B,0,0,0,0 B,0,0,0,0,0,B,0,0,0 B,0,0,0,0,0,0,B,0,0 B,0,0,0,0,0,0,0,B,0

  1. Brick touching 2 others, which are adjacent, dies.

B,B,B,0,0,0,0,0,0,0 B,0,B,B,0,0,0,0,0,0 B,0,0,B,B,0,0,0,0,0 B,0,0,0,B,B,0,0,0,0 B,0,0,0,0,B,B,0,0,0 B,0,0,0,0,0,B,B,0,0 B,0,0,0,0,0,0,B,B,0 B,B,0,0,0,0,0,0,B,0

B,B,0,B,0,0,0,0,0,0 B,0,0,B,0,B,0,0,0,0 B,0,0,0,0,B,0,B,0,0 B,B,0,0,0,0,0,B,0,0

                                        1. Start of brick push rules ###################
  1. Brick at end of line of bricks not pushed by passing spaceship on other side.
  2. (This allows a dented wall to be hit from both sides without breaking.)

B,B,0,0,0,E,0,0,0,7 # B B,0,0,B,0,0,0,S,0,7 # B B,W,0,0,0,B,0,0,0,7 # B B,0,0,N,0,0,0,B,0,7 # B

B,B,0,0,0,W,0,0,0,7 # B B,0,0,B,0,0,0,N,0,7 # B B,E,0,0,0,B,0,0,0,7 # B B,0,0,S,0,0,0,B,0,7 # B

  1. Brick gets pushed if exactly 1 spaceship is next to it.

B,notship0,m,notship1,f,ship,h,notship2,a,8 # BN B,notship0,m,notship1,f,notship2,h,ship,a,9 # BE B,ship,m,notship0,f,notship1,h,notship2,a,10 # BS B,notship0,m,ship,f,notship1,h,notship2,a,11 # BW

  1. Brick stays put if 2 pushed bricks moving into it.

B,BS,m,BW,f,s,h,w,a,7 # B B,n,m,BW,f,BN,h,w,a,7 # B B,n,m,e,f,BN,h,BE,a,7 # B B,BS,m,e,f,s,h,BE,a,7 # B B,BS,m,e,f,BN,h,w,a,7 # B B,n,m,BW,f,s,h,BE,a,7 # B

  1. Brick becomes pushed brick if exactly 1 pushed brick moving into it.

B,n,m,e,f,BN,h,w,a,8 # BN B,n,m,e,f,s,h,BE,a,9 # BE B,BS,m,e,f,s,h,w,a,10 # BS B,n,m,BW,f,s,h,w,a,11 # BW

  1. Pushed brick dies.

BN,n,m,e,f,s,h,w,a,0 BE,n,m,e,f,s,h,w,a,0 BS,n,m,e,f,s,h,w,a,0 BW,n,m,e,f,s,h,w,a,0

  1. Space becomes brick if pushed brick moving into it.

0,n,m,e,f,BN,h,w,a,7 # B 0,n,m,e,f,s,h,BE,a,7 # B 0,BS,m,e,f,s,h,w,a,7 # B 0,n,m,BW,f,s,h,w,a,7 # B

  1. Space becomes brick if dying brick alongside it would become disconnected from brick behind it.

0,n,m,BN,f,B,h,w,a,7 # B 0,n,m,e,f,BE,h,B,a,7 # B 0,B,m,e,f,s,h,BS,a,7 # B 0,BW,m,B,f,s,h,w,a,7 # B 0,n,m,e,f,B,h,BN,a,7 # B 0,BE,m,e,f,s,h,B,a,7 # B 0,B,m,BS,f,s,h,w,a,7 # B 0,n,m,B,f,BW,h,w,a,7 # B

0,n,m,BN,f,BW,h,w,a,7 # B 0,n,m,e,f,BE,h,BN,a,7 # B 0,BE,m,e,f,s,h,BS,a,7 # B 0,BW,m,BS,f,s,h,w,a,7 # B

  1. Gap in broken wall (caused by simultaneous collisions from both sides) fixes itself.
  2. 0,B,m,notBW,f,B,h,notBE,a,7 # B
  3. 0,notBS,m,B,f,notBN,h,B,a,7 # B

0,B,0,notBW,0,B,0,notBE,0,7 # B 0,notBS,0,B,0,notBN,0,B,0,7 # B

  1. End of rules

@COLORS

  1. Colors for "pressure" rule
  2. Dean Hickerson, 3/26/2010

0 0 0 0 1 255 20 147 # north = deep pink 8 255 20 147 2 0 255 255 # east = aqua 9 0 255 255 3 255 255 0 # south = yellow 10 255 255 0 4 0 255 0 # west = lime 11 0 255 0 5 255 165 0 # north + south = orange 6 0 255 127 # east + west = spring green 7 105 51 15 # brick = unnamed brown

@ICONS

XPM /* width height num_colors chars_per_pixel */ "31 341 2 1" /* colors */ ". c #000000" "B c #FFFFFF" /* icon for state 1 */ "..............................." "..............................." "..............................." "..............................." "..............................." "...............B..............." "..............BBB.............." ".............BBBBB............." "............BBBBBBB............" "...........BBBBBBBBB..........." "..........BBB.BBB.BBB.........." ".........BBB..BBB..BBB........." "........BBB...BBB...BBB........" ".......BBB....BBB....BBB......." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." /* icon for state 2 */ "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." ".................B............." ".................BB............" ".................BBB..........." "..................BBB.........." "...................BBB........." "....................BBB........" ".....................BBB......." "......BBBBBBBBBBBBBBBBBBB......" "......BBBBBBBBBBBBBBBBBBBB....." "......BBBBBBBBBBBBBBBBBBB......" ".....................BBB......." "....................BBB........" "...................BBB........." "..................BBB.........." ".................BBB..........." ".................BB............" ".................B............." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." /* icon for state 3 */ "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." ".......BBB....BBB....BBB......." "........BBB...BBB...BBB........" ".........BBB..BBB..BBB........." "..........BBB.BBB.BBB.........." "...........BBBBBBBBB..........." "............BBBBBBB............" ".............BBBBB............." "..............BBB.............." "...............B..............." "..............................." "..............................." "..............................." "..............................." "..............................." /* icon for state 4 */ "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." ".............B................." "............BB................." "...........BBB................." "..........BBB.................." ".........BBB..................." "........BBB...................." ".......BBB....................." "......BBBBBBBBBBBBBBBBBBB......" ".....BBBBBBBBBBBBBBBBBBBB......" "......BBBBBBBBBBBBBBBBBBB......" ".......BBB....................." "........BBB...................." ".........BBB..................." "..........BBB.................." "...........BBB................." "............BB................." ".............B................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." /* icon for state 5 */ "..............................." "..............................." "..............................." "..............................." "..............................." "...............B..............." "..............BBB.............." ".............BBBBB............." "............BBBBBBB............" "...........BBBBBBBBB..........." "..........BBB.BBB.BBB.........." ".........BBB..BBB..BBB........." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." "..............BBB.............." ".........BBB..BBB..BBB........." "..........BBB.BBB.BBB.........." "...........BBBBBBBBB..........." "............BBBBBBB............" ".............BBBBB............." "..............BBB.............." "...............B..............." "..............................." "..............................." "..............................." "..............................." "..............................." /* icon for state 6 */ "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "...........B.......B..........." "..........BB.......BB.........." ".........BBB.......BBB........." "........BBB.........BBB........" ".......BBB...........BBB......." "......BBBBBBBBBBBBBBBBBBB......" ".....BBBBBBBBBBBBBBBBBBBBB....." "......BBBBBBBBBBBBBBBBBBB......" ".......BBB...........BBB......." "........BBB.........BBB........" ".........BBB.......BBB........." "..........BB.......BB.........." "...........B.......B..........." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." "..............................." /* icon for state 7 */ "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" /* icon for state 8 */ "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB.............B.............BB" "BB............BBB............BB" "BB...........BBBBB...........BB" "BB..........BBBBBBB..........BB" "BB.........BBBBBBBBB.........BB" "BB........BBB.BBB.BBB........BB" "BB.......BBB..BBB..BBB.......BB" "BB......BBB...BBB...BBB......BB" "BB.....BBB....BBB....BBB.....BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" /* icon for state 9 */ "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...............B...........BB" "BB...............BB..........BB" "BB...............BBB.........BB" "BB................BBB........BB" "BB.................BBB.......BB" "BB..................BBB......BB" "BB...................BBB.....BB" "BB....BBBBBBBBBBBBBBBBBBB....BB" "BB....BBBBBBBBBBBBBBBBBBBB...BB" "BB....BBBBBBBBBBBBBBBBBBB....BB" "BB...................BBB.....BB" "BB..................BBB......BB" "BB.................BBB.......BB" "BB................BBB........BB" "BB...............BBB.........BB" "BB...............BB..........BB" "BB...............B...........BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" /* icon for state 10 */ "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB............BBB............BB" "BB.....BBB....BBB....BBB.....BB" "BB......BBB...BBB...BBB......BB" "BB.......BBB..BBB..BBB.......BB" "BB........BBB.BBB.BBB........BB" "BB.........BBBBBBBBB.........BB" "BB..........BBBBBBB..........BB" "BB...........BBBBB...........BB" "BB............BBB............BB" "BB.............B.............BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" /* icon for state 11 */ "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........B...............BB" "BB..........BB...............BB" "BB.........BBB...............BB" "BB........BBB................BB" "BB.......BBB.................BB" "BB......BBB..................BB" "BB.....BBB...................BB" "BB....BBBBBBBBBBBBBBBBBBB....BB" "BB...BBBBBBBBBBBBBBBBBBBB....BB" "BB....BBBBBBBBBBBBBBBBBBB....BB" "BB.....BBB...................BB" "BB......BBB..................BB" "BB.......BBB.................BB" "BB........BBB................BB" "BB.........BBB...............BB" "BB..........BB...............BB" "BB...........B...............BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BB...........................BB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"

XPM /* width height num_colors chars_per_pixel */ "15 165 2 1" /* colors */ ". c #000000" "B c #FFFFFF" /* icon for state 1 */ "..............." "..............." "..............." ".......B......." "......BBB......" ".....B.B.B....." "....B..B..B...." ".......B......." ".......B......." ".......B......." ".......B......." ".......B......." "..............." "..............." "..............." /* icon for state 2 */ "..............." "..............." "..............." "..............." "........B......" ".........B....." "..........B...." "...BBBBBBBBB..." "..........B...." ".........B....." "........B......" "..............." "..............." "..............." "..............." /* icon for state 3 */ "..............." "..............." "..............." ".......B......." ".......B......." ".......B......." ".......B......." ".......B......." "....B..B..B...." ".....B.B.B....." "......BBB......" ".......B......." "..............." "..............." "..............." /* icon for state 4 */ "..............." "..............." "..............." "..............." "......B........" ".....B........." "....B.........." "...BBBBBBBBB..." "....B.........." ".....B........." "......B........" "..............." "..............." "..............." "..............." /* icon for state 5 */ "..............." "..............." "..............." ".......B......." "......BBB......" ".....B.B.B....." ".......B......." ".......B......." ".......B......." ".....B.B.B....." "......BBB......" ".......B......." "..............." "..............." "..............." /* icon for state 6 */ "..............." "..............." "..............." "..............." "..............." ".....B...B....." "....B.....B...." "...BBBBBBBBB..." "....B.....B...." ".....B...B....." "..............." "..............." "..............." "..............." "..............." /* icon for state 7 */ "BBBBBBBBBBBBBBB" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "B.............B" "BBBBBBBBBBBBBBB" /* icon for state 8 */ "BBBBBBBBBBBBBBB" "B.............B" "B.............B" "B......B......B" "B.....BBB.....B" "B....B.B.B....B" "B...B..B..B...B" "B......B......B" "B......B......B" "B......B......B" "B......B......B" "B......B......B" "B.............B" "B.............B" "BBBBBBBBBBBBBBB" /* icon for state 9 */ "BBBBBBBBBBBBBBB" "B.............B" "B.............B" "B.............B" "B.......B.....B" "B........B....B" "B.........B...B" "B..BBBBBBBBB..B" "B.........B...B" "B........B....B" "B.......B.....B" "B.............B" "B.............B" "B.............B" "BBBBBBBBBBBBBBB" /* icon for state 10 */ "BBBBBBBBBBBBBBB" "B.............B" "B.............B" "B......B......B" "B......B......B" "B......B......B" "B......B......B" "B......B......B" "B...B..B..B...B" "B....B.B.B....B" "B.....BBB.....B" "B......B......B" "B.............B" "B.............B" "BBBBBBBBBBBBBBB" /* icon for state 11 */ "BBBBBBBBBBBBBBB" "B.............B" "B.............B" "B.............B" "B.....B.......B" "B....B........B" "B...B.........B" "B..BBBBBBBBB..B" "B...B.........B" "B....B........B" "B.....B.......B" "B.............B" "B.............B" "B.............B" "BBBBBBBBBBBBBBB"

XPM /* width height num_colors chars_per_pixel */ "7 77 2 1" /* colors */ ". c #000000" "B c #FFFFFF" /* icon for state 1 */ "...B..." "..BBB.." ".B.B.B." "...B..." "...B..." "...B..." "...B..." /* icon for state 2 */ "......." "....B.." ".....B." "BBBBBBB" ".....B." "....B.." "......." /* icon for state 3 */ "...B..." "...B..." "...B..." "...B..." ".B.B.B." "..BBB.." "...B..." /* icon for state 4 */ "......." "..B...." ".B....." "BBBBBBB" ".B....." "..B...." "......." /* icon for state 5 */ "...B..." "..BBB.." ".B.B.B." "...B..." ".B.B.B." "..BBB.." "...B..." /* icon for state 6 */ "......." "..B.B.." ".B...B." "BBBBBBB" ".B...B." "..B.B.." "......." /* icon for state 7 */ "BBBBBBB" "B.....B" "B.....B" "B.....B" "B.....B" "B.....B" "BBBBBBB" /* icon for state 8 */ "BBBBBBB" "B..B..B" "B.BBB.B" "BB.B.BB" "B..B..B" "B..B..B" "BBBBBBB" /* icon for state 9 */ "BBBBBBB" "B..B..B" "B...B.B" "BBBBBBB" "B...B.B" "B..B..B" "BBBBBBB" /* icon for state 10 */ "BBBBBBB" "B..B..B" "B..B..B" "BB.B.BB" "B.BBB.B" "B..B..B" "BBBBBBB" /* icon for state 11 */ "BBBBBBB" "B..B..B" "B.B...B" "BBBBBBB" "B.B...B" "B..B..B" "BBBBBBB"