HPP-based Liquid corrosion & River sim

For discussion of other cellular automata.
Post Reply
User avatar
jimmyChen2013
Posts: 184
Joined: December 11th, 2017, 3:28 am

HPP-based Liquid corrosion & River sim

Post by jimmyChen2013 » December 11th, 2017, 4:21 am

I am trying to simulate liquid corrosion and shape of rivers, by modifying the rules of HPP-demo (in Golly) so that the the bounders die after being hit by a particle. It works decent, but I'm not getting the results I wanted since the bounders die in one hit; if it the bounders die with a random probability (which is not supported in ruleloader) or dies in a certain amount of hits, the result will be much better.
to do the last one, I plan to add more states for each bounder, but that would be too tiring.
Any idea to do that?

here's my current rule:

Code: Select all

@RULE River

HPP Lattice gas

J. Hardy, O. de Pazzis, and Y. Pomeau (1973) J. Math. Phys. 14, 470.

The earliest lattice gas model. Later made obsolete by the FHP gas on
a hexagonal lattice, which has better physical properties.

States following http://pages.cs.wisc.edu/~wylie/doc/PhD_thesis.pdf

Each cell can contain up to 4 particles, each moving in one of the four directions.
Outgoing directions SENW map onto 4 bits, so W=0001=1, SEW=1101=13, etc.
Next state is simply the collected inputs, in most cases.
The exceptions are 5 (EW) and 10 (NS) which get swapped (bounce on collision).

To make the gas useful in Golly's infinite area, I've added reflecting boundary
states, 16-31. These work in the same way as gas particles (collecting inputs)
but reverse their direction. Contact: Tim Hutton <tim.hutton@gmail.com>

Sink boundary: (or you can vent to the outside but this way is neater)
32
Source boundary: (haven't really worked out how to use this well yet)
33

The HPP gas can also be run using the Margolus-neighborhood emulator in
Golly (see e.g. Patterns/Margolus/BBM.rle) but this CA is neater.

@TABLE

n_states:34
neighborhood:vonNeumann
symmetries:none

# a = any of the gas states
var a={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}

# b = any of the reflecting boundary states
var b={16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}
var c={17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}
var c1 = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}
var c2 = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}
var c3 = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}
var c4 = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}

# s = has an outgoing south particle
var s={8,9,10,11,12,13,14,15,24,25,26,27,28,29,30,31,33}
# Ns = doesn't have an outgoing south particle
var Ns={0,1,2,3,4,5,6,7,16,17,18,19,20,21,22,23,32}
# e = has an outgoing east particle
var e={4,5,6,7,12,13,14,15,20,21,22,23,28,29,30,31,33}
# Ne = doesn't have an outgoing east particle
var Ne={0,1,2,3,8,9,10,11,16,17,18,19,24,25,26,27,32}
# n = has an outgoing north particle
var n={2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31,33}
# Nn = doesn't have an outgoing north particle
var Nn={0,1,4,5,8,9,12,13,16,17,20,21,24,25,28,29,32}
# w = has an outgoing west particle
var w={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33}
# Nw = doesn't have an outgoing north particle
var Nw={0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32}

# straightforward transport (no interactions) except 5 and 10 which are swapped
a,Ns,Nw,Nn,Ne,0
a,Ns,w,Nn,Ne,1
a,Ns,Nw,n,Ne,2
a,Ns,w,n,Ne,3
a,Ns,Nw,Nn,e,4
a,Ns,w,Nn,e,10
a,Ns,Nw,n,e,6
a,Ns,w,n,e,7
a,s,Nw,Nn,Ne,8
a,s,w,Nn,Ne,9
a,s,Nw,n,Ne,5
a,s,w,n,Ne,11
a,s,Nw,Nn,e,12
a,s,w,Nn,e,13
a,s,Nw,n,e,14
a,s,w,n,e,15

# reflecting boundaries:
16,Ns,Nw,Nn,Ne,16
c,c1,c2,c3,c4,0
b,Ns,Nw,Nn,Ne,16
b,Ns,Nw,Nn,e,17
b,s,Nw,Nn,Ne,18
b,s,Nw,Nn,e,19
b,Ns,w,Nn,Ne,20
b,Ns,w,Nn,e,21
b,s,w,Nn,Ne,22
b,s,w,Nn,e,23
b,Ns,Nw,n,Ne,24
b,Ns,Nw,n,e,25
b,s,Nw,n,Ne,26
b,s,Nw,n,e,27
b,Ns,w,n,Ne,28
b,Ns,w,n,e,29
b,s,w,n,Ne,30
b,s,w,n,e,31

@COLORS

# the grey-level intensity is proportional to the number of particles
# in the square
1  120 120 120
2  120 120 120
3  160 160 160
4  120 120 120
5  160 160 160
6  160 160 160
7  220 220 220
8  120 120 120
9  160 160 160
10 160 160 160
11 220 220 220
12 160 160 160
13 220 220 220
14 220 220 220
15 255 255 255
16 200 180   0
17 255 255   0
18 255 255   0
19 255 255   0
20 255 255   0
21 255 255   0
22 255 255   0
23 255 255   0
24 255 255   0
25 255 255   0
26 255 255   0
27 255 255   0
28 255 255   0
29 255 255   0
30 255 255   0
31 255 255   0
32 255   0   0
33   0 255   0

@ICONS

XPM
/* width height num_colors chars_per_pixel */
"31 496 2 1"
/* colors */
". c #000000"
"B c #FFFFFF"
/* icon for state 1 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
".....B........................."
"....BB........................."
"...BBB........................."
"..BBBB........................."
".BBBBBBBBBBBBBBBBBBBBBBBBBB...."
"BBBBBBBBBBBBBBBBBBBBBBBBBBB...."
".BBBBBBBBBBBBBBBBBBBBBBBBBB...."
"..BBBB........................."
"...BBB........................."
"....BB........................."
".....B........................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 2 */
"...............B..............."
"..............BBB.............."
".............BBBBB............."
"............BBBBBBB............"
"...........BBBBBBBBB..........."
"..........BBBBBBBBBBB.........."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 3 */
"...............B..............."
"..............BBB.............."
".............BBBBB............."
"............BBBBBBB............"
"...........BBBBBBBBB..........."
"..........BBBBBBBBBBB.........."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
".....B........BBB.............."
"....BB........BBB.............."
"...BBB........BBB.............."
"..BBBB........BBB.............."
".BBBBBBBBBBBBBBBBBBBBBBBBBB...."
"BBBBBBBBBBBBBBBBBBBBBBBBBBB...."
".BBBBBBBBBBBBBBBBBBBBBBBBBB...."
"..BBBB........BBB.............."
"...BBB........BBB.............."
"....BB........BBB.............."
".....B........BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 4 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
".........................B....."
".........................BB...."
".........................BBB..."
".........................BBBB.."
"....BBBBBBBBBBBBBBBBBBBBBBBBBB."
"....BBBBBBBBBBBBBBBBBBBBBBBBBBB"
"....BBBBBBBBBBBBBBBBBBBBBBBBBB."
".........................BBBB.."
".........................BBB..."
".........................BB...."
".........................B....."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 5 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
".....B...................B....."
"....BB...................BB...."
"...BBB...................BBB..."
"..BBBB...................BBBB.."
".BBBBBBBBBBBBBBBBBBBBBBBBBBBBB."
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
".BBBBBBBBBBBBBBBBBBBBBBBBBBBBB."
"..BBBB...................BBBB.."
"...BBB...................BBB..."
"....BB...................BB...."
".....B...................B....."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 6 */
"...............B..............."
"..............BBB.............."
".............BBBBB............."
"............BBBBBBB............"
"...........BBBBBBBBB..........."
"..........BBBBBBBBBBB.........."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB........B....."
"..............BBB........BB...."
"..............BBB........BBB..."
"..............BBB........BBBB.."
"....BBBBBBBBBBBBBBBBBBBBBBBBBB."
"....BBBBBBBBBBBBBBBBBBBBBBBBBBB"
"....BBBBBBBBBBBBBBBBBBBBBBBBBB."
"..............BBB........BBBB.."
"..............BBB........BBB..."
"..............BBB........BB...."
"..............BBB........B....."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 7 */
"...............B..............."
"..............BBB.............."
".............BBBBB............."
"............BBBBBBB............"
"...........BBBBBBBBB..........."
"..........BBBBBBBBBBB.........."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
".....B........BBB........B....."
"....BB........BBB........BB...."
"...BBB........BBB........BBB..."
"..BBBB........BBB........BBBB.."
".BBBBBBBBBBBBBBBBBBBBBBBBBBBBB."
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
".BBBBBBBBBBBBBBBBBBBBBBBBBBBBB."
"..BBBB........BBB........BBBB.."
"...BBB........BBB........BBB..."
"....BB........BBB........BB...."
".....B........BBB........B....."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............................."
"..............................."
"..............................."
"..............................."
/* icon for state 8 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..........BBBBBBBBBBB.........."
"...........BBBBBBBBB..........."
"............BBBBBBB............"
".............BBBBB............."
"..............BBB.............."
"...............B..............."
/* icon for state 9 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
".....B........BBB.............."
"....BB........BBB.............."
"...BBB........BBB.............."
"..BBBB........BBB.............."
".BBBBBBBBBBBBBBBBBBBBBBBBBB...."
"BBBBBBBBBBBBBBBBBBBBBBBBBBB...."
".BBBBBBBBBBBBBBBBBBBBBBBBBB...."
"..BBBB........BBB.............."
"...BBB........BBB.............."
"....BB........BBB.............."
".....B........BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..........BBBBBBBBBBB.........."
"...........BBBBBBBBB..........."
"............BBBBBBB............"
".............BBBBB............."
"..............BBB.............."
"...............B..............."
/* icon for state 10 */
"...............B..............."
"..............BBB.............."
".............BBBBB............."
"............BBBBBBB............"
"...........BBBBBBBBB..........."
"..........BBBBBBBBBBB.........."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..........BBBBBBBBBBB.........."
"...........BBBBBBBBB..........."
"............BBBBBBB............"
".............BBBBB............."
"..............BBB.............."
"...............B..............."
/* icon for state 11 */
"...............B..............."
"..............BBB.............."
".............BBBBB............."
"............BBBBBBB............"
"...........BBBBBBBBB..........."
"..........BBBBBBBBBBB.........."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
".....B........BBB.............."
"....BB........BBB.............."
"...BBB........BBB.............."
"..BBBB........BBB.............."
".BBBBBBBBBBBBBBBBBBBBBBBBBB...."
"BBBBBBBBBBBBBBBBBBBBBBBBBBB...."
".BBBBBBBBBBBBBBBBBBBBBBBBBB...."
"..BBBB........BBB.............."
"...BBB........BBB.............."
"....BB........BBB.............."
".....B........BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..........BBBBBBBBBBB.........."
"...........BBBBBBBBB..........."
"............BBBBBBB............"
".............BBBBB............."
"..............BBB.............."
"...............B..............."
/* icon for state 12 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB........B....."
"..............BBB........BB...."
"..............BBB........BBB..."
"..............BBB........BBBB.."
"....BBBBBBBBBBBBBBBBBBBBBBBBBB."
"....BBBBBBBBBBBBBBBBBBBBBBBBBBB"
"....BBBBBBBBBBBBBBBBBBBBBBBBBB."
"..............BBB........BBBB.."
"..............BBB........BBB..."
"..............BBB........BB...."
"..............BBB........B....."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..........BBBBBBBBBBB.........."
"...........BBBBBBBBB..........."
"............BBBBBBB............"
".............BBBBB............."
"..............BBB.............."
"...............B..............."
/* icon for state 13 */
"..............................."
"..............................."
"..............................."
"..............................."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
".....B........BBB........B....."
"....BB........BBB........BB...."
"...BBB........BBB........BBB..."
"..BBBB........BBB........BBBB.."
".BBBBBBBBBBBBBBBBBBBBBBBBBBBBB."
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
".BBBBBBBBBBBBBBBBBBBBBBBBBBBBB."
"..BBBB........BBB........BBBB.."
"...BBB........BBB........BBB..."
"....BB........BBB........BB...."
".....B........BBB........B....."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..........BBBBBBBBBBB.........."
"...........BBBBBBBBB..........."
"............BBBBBBB............"
".............BBBBB............."
"..............BBB.............."
"...............B..............."
/* icon for state 14 */
"...............B..............."
"..............BBB.............."
".............BBBBB............."
"............BBBBBBB............"
"...........BBBBBBBBB..........."
"..........BBBBBBBBBBB.........."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB........B....."
"..............BBB........BB...."
"..............BBB........BBB..."
"..............BBB........BBBB.."
"....BBBBBBBBBBBBBBBBBBBBBBBBBB."
"....BBBBBBBBBBBBBBBBBBBBBBBBBBB"
"....BBBBBBBBBBBBBBBBBBBBBBBBBB."
"..............BBB........BBBB.."
"..............BBB........BBB..."
"..............BBB........BB...."
"..............BBB........B....."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..........BBBBBBBBBBB.........."
"...........BBBBBBBBB..........."
"............BBBBBBB............"
".............BBBBB............."
"..............BBB.............."
"...............B..............."
/* icon for state 15 */
"...............B..............."
"..............BBB.............."
".............BBBBB............."
"............BBBBBBB............"
"...........BBBBBBBBB..........."
"..........BBBBBBBBBBB.........."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
".....B........BBB........B....."
"....BB........BBB........BB...."
"...BBB........BBB........BBB..."
"..BBBB........BBB........BBBB.."
".BBBBBBBBBBBBBBBBBBBBBBBBBBBBB."
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
".BBBBBBBBBBBBBBBBBBBBBBBBBBBBB."
"..BBBB........BBB........BBBB.."
"...BBB........BBB........BBB..."
"....BB........BBB........BB...."
".....B........BBB........B....."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..............BBB.............."
"..........BBBBBBBBBBB.........."
"...........BBBBBBBBB..........."
"............BBBBBBB............"
".............BBBBB............."
"..............BBB.............."
"...............B..............."
/* icon for states 16 to 33 */
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"

XPM
/* width height num_colors chars_per_pixel */
"15 240 2 1"
/* colors */
". c #000000"
"B c #FFFFFF"
/* icon for state 1 */
"..............."
"..............."
"..............."
"..............."
"..............."
"..B............"
".BB............"
"BBBBBBBBBBBBB.."
".BB............"
"..B............"
"..............."
"..............."
"..............."
"..............."
"..............."
/* icon for state 2 */
".......B......."
"......BBB......"
".....BBBBB....."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
"..............."
"..............."
/* icon for state 3 */
".......B......."
"......BBB......"
".....BBBBB....."
".......B......."
".......B......."
"..B....B......."
".BB....B......."
"BBBBBBBBBBBBB.."
".BB....B......."
"..B....B......."
".......B......."
".......B......."
".......B......."
"..............."
"..............."
/* icon for state 4 */
"..............."
"..............."
"..............."
"..............."
"..............."
"............B.."
"............BB."
"..BBBBBBBBBBBBB"
"............BB."
"............B.."
"..............."
"..............."
"..............."
"..............."
"..............."
/* icon for state 5 */
"..............."
"..............."
"..............."
"..............."
"..............."
"..B.........B.."
".BB.........BB."
"BBBBBBBBBBBBBBB"
".BB.........BB."
"..B.........B.."
"..............."
"..............."
"..............."
"..............."
"..............."
/* icon for state 6 */
".......B......."
"......BBB......"
".....BBBBB....."
".......B......."
".......B......."
".......B....B.."
".......B....BB."
"..BBBBBBBBBBBBB"
".......B....BB."
".......B....B.."
".......B......."
".......B......."
".......B......."
"..............."
"..............."
/* icon for state 7 */
".......B......."
"......BBB......"
".....BBBBB....."
".......B......."
".......B......."
"..B....B....B.."
".BB....B....BB."
"BBBBBBBBBBBBBBB"
".BB....B....BB."
"..B....B....B.."
".......B......."
".......B......."
".......B......."
"..............."
"..............."
/* icon for state 8 */
"..............."
"..............."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".....BBBBB....."
"......BBB......"
".......B......."
/* icon for state 9 */
"..............."
"..............."
".......B......."
".......B......."
".......B......."
"..B....B......."
".BB....B......."
"BBBBBBBBBBBBB.."
".BB....B......."
"..B....B......."
".......B......."
".......B......."
".....BBBBB....."
"......BBB......"
".......B......."
/* icon for state 10 */
".......B......."
"......BBB......"
".....BBBBB....."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".......B......."
".....BBBBB....."
"......BBB......"
".......B......."
/* icon for state 11 */
".......B......."
"......BBB......"
".....BBBBB....."
".......B......."
".......B......."
"..B....B......."
".BB....B......."
"BBBBBBBBBBBBB.."
".BB....B......."
"..B....B......."
".......B......."
".......B......."
".....BBBBB....."
"......BBB......"
".......B......."
/* icon for state 12 */
"..............."
"..............."
".......B......."
".......B......."
".......B......."
".......B....B.."
".......B....BB."
"..BBBBBBBBBBBBB"
".......B....BB."
".......B....B.."
".......B......."
".......B......."
".....BBBBB....."
"......BBB......"
".......B......."
/* icon for state 13 */
"..............."
"..............."
".......B......."
".......B......."
".......B......."
"..B....B....B.."
".BB....B....BB."
"BBBBBBBBBBBBBBB"
".BB....B....BB."
"..B....B....B.."
".......B......."
".......B......."
".....BBBBB....."
"......BBB......"
".......B......."
/* icon for state 14 */
".......B......."
"......BBB......"
".....BBBBB....."
".......B......."
".......B......."
".......B....B.."
".......B....BB."
"..BBBBBBBBBBBBB"
".......B....BB."
".......B....B.."
".......B......."
".......B......."
".....BBBBB....."
"......BBB......"
".......B......."
/* icon for state 15 */
".......B......."
"......BBB......"
".....BBBBB....."
".......B......."
".......B......."
"..B....B....B.."
".BB....B....BB."
"BBBBBBBBBBBBBBB"
".BB....B....BB."
"..B....B....B.."
".......B......."
".......B......."
".....BBBBB....."
"......BBB......"
".......B......."
/* icon for states 16 to 33 */
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"
"BBBBBBBBBBBBBBB"

XPM
/* width height num_colors chars_per_pixel */
"7 112 2 1"
/* colors */
". c #000000"
"B c #FFFFFF"
/* icon for state 1 */
"......."
"......."
".B....."
"BBBBBB."
".B....."
"......."
"......."
/* icon for state 2 */
"...B..."
"..BBB.."
"...B..."
"...B..."
"...B..."
"...B..."
"......."
/* icon for state 3 */
"...B..."
"..BBB.."
".B.B..."
"BBBBBB."
".B.B..."
"...B..."
"......."
/* icon for state 4 */
"......."
"......."
".....B."
".BBBBBB"
".....B."
"......."
"......."
/* icon for state 5 */
"......."
"......."
".B...B."
"BBBBBBB"
".B...B."
"......."
"......."
/* icon for state 6 */
"...B..."
"..BBB.."
"...B.B."
".BBBBBB"
"...B.B."
"...B..."
"......."
/* icon for state 7 */
"...B..."
"..BBB.."
".B.B.B."
"BBBBBBB"
".B.B.B."
"...B..."
"......."
/* icon for state 8 */
"......."
"...B..."
"...B..."
"...B..."
"...B..."
"..BBB.."
"...B..."
/* icon for state 9 */
"......."
"......."
".B....."
"BBBB..."
".B.B..."
"..BBB.."
"...B..."
/* icon for state 10 */
"...B..."
"..BBB.."
"...B..."
"...B..."
"...B..."
"..BBB.."
"...B..."
/* icon for state 11 */
"...B..."
"..BBB.."
".B.B..."
"BBBBBB."
".B.B..."
"..BBB.."
"...B..."
/* icon for state 12 */
"......."
"...B..."
"...B.B."
".BBBBBB"
"...B.B."
"..BBB.."
"...B..."
/* icon for state 13 */
"......."
"...B..."
".B.B.B."
"BBBBBBB"
".B.B.B."
"..BBB.."
"...B..."
/* icon for state 14 */
"...B..."
"..BBB.."
"...B.B."
".BBBBBB"
"...B.B."
"..BBB.."
"...B..."
/* icon for state 15 */
"...B..."
"..BBB.."
".B.B.B."
"BBBBBBB"
".B.B.B."
"..BBB.."
"...B..."
/* icon for states 16 to 33 */
"BBBBBBB"
"BBBBBBB"
"BBBBBBB"
"BBBBBBB"
"BBBBBBB"
"BBBBBBB"
"BBBBBBB"

Attachments
Screen Shot 2017-12-11 at 4.13.43 PM.png
Screen Shot 2017-12-11 at 4.13.43 PM.png (33 KiB) Viewed 1877 times

Code: Select all

x = 8, y = 13, rule = B3aeiqr4-aijn5c6cei7/S2cn3-ajr4ceiqt5eijkq6-a7c8
2bo$b3o$5o$b5o$2b5o$3b5o$2b5o$b5o$5o$4o$3o$2o$o!

fluffykitty
Posts: 1175
Joined: June 14th, 2014, 5:03 pm
Contact:

Re: HPP-based Liquid corrosion & River sim

Post by fluffykitty » December 11th, 2017, 5:33 pm

Well, you can write a script to automatically generate the rules.

Post Reply