Page 1 of 1

Living On The Edge

Posted: October 16th, 2018, 9:12 am
by cvojan
Hello!
I spent the last hour reworking on this script I made, & It's the LoTE CA.
The Rule is B37/S3458/4
The last 4 means that it lasts for 3 frames before it dies.

Code: Select all

@RULE LivingOnTheEdge

# B37/S3458/4

@TABLE
n_states:4
neighborhood:Moore
symmetries:permute
var a={0,2,3}
var b={a}
var c={a}
var d={a}
var e={a}
var f={0,1,2,3}
var g={f}
var h={f}
var i={f}
var j={f}
var k={f}
var l={f}
var m={f}
var n={1,2,3}
var o={n}
var p={n}
var q={n}
var r={n}
var s={n}
var t={n}
var u={n}
var v={a}
var w={a}
var x={a}

# oS,N,NE,E,SE,S,SW,W,NW,nS
# NW,N,NE -> 0, 0,0
# W, oS,E -> 0,nS,0
# SW,S,SE -> 0, 0,0

0,1,1,1,a,b,c,d,e,1
0,1,1,1,1,1,1,1,a,1

1,1,1,1,a,b,c,d,e,1
1,1,1,1,1,a,b,c,d,1
1,1,1,1,1,1,a,b,c,1
1,1,1,1,1,1,1,1,1,1

1,a,b,c,d,e,v,w,x,2
1,1,a,b,c,d,e,v,w,2
1,1,1,a,b,c,d,e,v,2
1,1,1,1,1,1,1,a,b,2
1,1,1,1,1,1,1,1,a,2

1,a,b,c,d,e,v,w,x,2

2,f,g,h,i,j,k,l,m,3

3,f,g,h,i,j,k,l,m,0
Here's a sample c/2 orthogonal spaceship:

Code: Select all

x = 4, y = 5, rule = LivingOnTheEdge
2.AC$3AB$2AC$3AB$2.AC!

Re: Living On The Edge

Posted: October 16th, 2018, 9:31 am
by cvojan
Here's a somewhat knightwise puffer:

Code: Select all

x = 7, y = 8, rule = LivingOnTheEdge
2.2A$2.2A$CB.A$2.A$2.3AB$3.AC2A$3.BAB$4.A!
An eco-friendly puffer:

Code: Select all

x = 4, y = 10, rule = LivingOnTheEdge
2.AC$3AB$2AC$3AB$2.AC$2.AC$3AB$2AC$3AB$2.AC!
p14 oscillator:

Code: Select all

x = 13, y = 13, rule = LivingOnTheEdge
11.2A$11.2A$8.C2A$7.BABA$6.A.3A$6.2A$4.2A.A$3.B.2A$2.C2A$2.ABA$2.3A$
2A$2A!
Racetracks!

Code: Select all

x = 7, y = 14, rule = LivingOnTheEdge
3.2A$3.2A$B2A2.2A$3A2.2A$3.2A$3.2A$.2A2.2A$.2A2.2A$3.2A$3.2A$.2A2.2A$
.2A2.2A$3.2A$3.2A!

Re: Living On The Edge

Posted: October 16th, 2018, 11:14 am
by Sarp
Isn't this just rule 3458/37/4?

Re: Living On The Edge

Posted: October 16th, 2018, 11:20 am
by cvojan
Sarp wrote:Isn't this just rule 3458/37/4?
Yeah, it is.

Re: Living On The Edge

Posted: October 18th, 2018, 9:41 pm
by 77topaz
You may want to change the name, because there's another CA called "Life on the Edge" that uses an entirely different mechanism.

Re: Living On The Edge

Posted: October 19th, 2018, 1:51 am
by wildmyron
First off, a belated welcome to the forum.

This is a rule in the Generations rulespace, which I suspect you know but I thought it's worth making clear. Both Golly and LifeViewer can run Generations rules directly, so no need for a ruletable, however Golly's canonical form for the rulestring of this rule is 3458/37/4. It's a nice rule I think, it has some interesting behaviour and a quite a few interesting small patterns. It does have a tendency to explode because of a small, diagonally symmetric pattern which is a failed/dirty replicator. This rule has been discussed on this forum before: the first mention I can find is here. I realised this after writing the rest of this post. There are also a few other mentions of this and similar rules elsewhere which you can find by searching this board for "generations" and "3458"

Here are the patterns you posted in a form which LifeViewer can interpret directly:

c/2 orthogonal spaceship:

Code: Select all

x = 4, y = 5, rule = 3458/37/4
2.AC$3AB$2AC$3AB$2.AC!
(4,3)c/16, p32 knightwise puffer

Code: Select all

x = 7, y = 8, rule = 3458/37/4
2.2A$2.2A$CB.A$2.A$2.3AB$3.AC2A$3.BAB$4.A!
c/2, p48 very sparky orthogonal spaceship (your eco-friendly puffer)

Code: Select all

x = 4, y = 10, rule = 3458/37/4
2.AC$3AB$2AC$3AB$2.AC$2.AC$3AB$2AC$3AB$2.AC!
p11 oscillator (not actually p14)

Code: Select all

x = 13, y = 13, rule = 3458/37/4
11.2A$11.2A$8.C2A$7.BABA$6.A.3A$6.2A$4.2A.A$3.B.2A$2.C2A$2.ABA$2.3A$
2A$2A!
p32 signal track (racetrack)

Code: Select all

x = 7, y = 14, rule = 3458/37/4
3.2A$.C.2A$B2A2.2A$3A2.2A$3.2A$3.2A$.2A2.2A$.2A2.2A$3.2A$3.2A$.2A2.2A
$.2A2.2A$3.2A$3.2A!
Click on the "Show in viewer" link to display and run them in LifeViewer. In general there's no need to post things in

Code: Select all

tags as it's so easy for the reader to bring up the viewer. (The viewer tag was introduced to the forum before the show in viewer link became available, so it saw use for some time but I think now is mostly redundant - except for rare occasions)

This little pattern is the cause of most explosions - it evolves into the failed replicator, compare generations 5 and 262.
[code]x = 6, y = 6, rule = 3458/37/4
3.B$2.C3A$.C2.2A$BA2.2A$.3AC$.3A![/code]

The knight puffer can be combined in many ways. Here's a pattern demonstrating several of those ways:
[code]x = 65, y = 118, rule = 3458/37/4
57.A$55.4A$53.2CA2B2A$50.2C3.A.2A$49.AB2.C.CB$49.2A.B.B$49.2A.3A$50.C
ABA$51.3A$62.2A$58.7A$57.3A.ACAB$56.2AB.ABAC$57.4A$49.C3.CBA2.A$49.AB
.C.2A$48.BC2A.B2A$48.3A3.A$48.3A4$39.B$11.2A24.3AC$10.3AB22.2AB.B$10.
2ACA23.2AC$9.C.AC2A$10.C.B2A$4.A$2.CBAB.C$.BA.CA.C9.B$2.2ABA.C7.3AC$.
BC3.B7.2AB.B$2A2C2AC8.2AC$.B4A$3.2A3$43.C$43.ABC$42.BC2A$42.3A$42.3A
4$50.2A$49.3AB$49.2ACA$48.C.AC2A$49.C.B2A$43.A$41.C4AC$41.BAB.AB$43.
2A.A$45.B$40.C4.C$34.AB3.B2A$34.2AC2.3A$34.2A4$34.A.A$31.7ABC$31.2AC.
CBA.AB$31.6A2BA$32.3A.A2BA$36.2A11$25.2A$25.2A7$19.2A$19.2A$8.3A$5.2B
4A$2.2B3CA.2A$2.A2CB.BAC$.2ACA.A$2.AC2A.C$2.B3A7.2A$3.2A8.2A4$.CA$.B
3A$.AC2A$.BCA3.2A$C2AB3.2A$.B5$4.CB$4.3A$C2.AB2A$2.C.2A$2.2A.CA$.BABC
2B$CA3CBA$2.2B![/code]
The front end is two copies of the puffer which form a double barrelled rake. These output streams are then tamed to form a (4,3)c/16 (p32) knightship.

For reference, we generally don't refer to ruletables as scripts as there are primarily a list of desired transitions for a cell with the specified neighbourhood configurations. Your version of the ruletable has some redundant lines which you can leave out and get the same behaviour. You've probably noticed that you didn't use the variables n -> u. I also find it much easier to work with variables using numerical suffixes rather than different letters, i.e. a0 -> a8. Much easier to remember which variables are the same set of states.

In the transition list, this block of lines dealing with death:
[code]1,a,b,c,d,e,v,w,x,2
1,1,a,b,c,d,e,v,w,2
1,1,1,a,b,c,d,e,v,2
1,1,1,1,1,1,1,a,b,2
1,1,1,1,1,1,1,1,a,2

1,a,b,c,d,e,v,w,x,2[/code]
can all be replaced by a single line:
[code]1,f,g,h,i,j,k,l,m,2[/code]
This is unambiguous because earlier lines in the table override those occurring later, so any live cells which are meant to survive will still do so.

Hope you enjoy your explorations of cellular automata.

Arie Paap

Re: Living On The Edge

Posted: October 19th, 2018, 1:39 pm
by bprentice
cvojan,

Your rule also supports oscillators with all periods > 3. The first 16:

Code: Select all

x = 114, y = 38, rule = 3458/37/4
5.A22.A67.2A$3.C2AB20.2AB30.2A34.2A$3.B2AC20.2AC30.2A32.2A2.2A$4.A53.
2A34.2AB3A$58.3A34.C$58.CB5$25.A$.C2.ABC13.2A2.2ABC2A2.3A30.A21.ABC
14.ABC$B2A.2A.3A9.C2A2.2A2.2A2.2A.B18.C2A.2A.2A.2AB15.2A.2A.2A.2A.2A
.2A.2A.2A.2A.2A.2A$3A.2A.2AB10.B.2A2.2A2.2A2.2AC17.B2A.2A.2A.2AC15.
2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A$3.CBA2.C12.3A2.2ACB2A2.2A19.A33.CB
A14.CBA$30.A6$4.BC89.A$3.3A21.ABC28.C31.2A2.2ABC2A2.2A$4.2A18.2A.2A
.2A25.B2A.2A27.2A2.2A2.2A2.2A$2.2A20.2A.2A.2A25.3A.2A29.2A2.2A2.2A2.
2A$2.3A21.CBA63.2A2.2ACB2A2.2A$2.CB96.A6$60.BC$2.C17.ABC8.ABC14.2A2.
2A2.2A.3A2.2A2.2A2.3A31.A$.B2A.3A10.2A.2A.2A.2A.2A.2A.2A9.C2A2.2A2.
2A2.2A2.2A2.2A2.2A.B13.C2A.2A.2A.2A.2A.2AB$.3A.2AB10.2A.2A.2A.2A.2A
.2A.2A10.B.2A2.2A2.2A2.2A2.2A2.2A2.2AC12.B2A.2A.2A.2A.2A.2AC$6.C15.
CBA8.CBA13.3A2.2A2.2A2.3A.2A2.2A2.2A14.A$62.CB!
Brian Prentice

Re: Living On The Edge

Posted: December 21st, 2018, 10:42 pm
by PHPBB12345
Arbitrarily large still life:

Code: Select all

x = 26, y = 26, rule = 3458/37/4
2A.2A.2A.2A.2A.2A.2A.2A.2A$2A.2A.2A.2A.2A.2A.2A.2A.2A2$2A.20A.2A$2A.
20A.2A$3.20A$2A.20A.2A$2A.20A.2A$3.20A$2A.20A.2A$2A.20A.2A$3.20A$2A.
20A.2A$2A.20A.2A$3.20A$2A.20A.2A$2A.20A.2A$3.20A$2A.20A.2A$2A.20A.2A$
3.20A$2A.20A.2A$2A.20A.2A2$2A.2A.2A.2A.2A.2A.2A.2A.2A$2A.2A.2A.2A.2A.
2A.2A.2A.2A!

Inverse LOTE

Posted: December 21st, 2018, 10:44 pm
by PHPBB12345

Code: Select all

x = 155, y = 155, rule = 3458/37/4
2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.
2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.
2A.2A.2A.2A.2A.2A$2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.
2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.
2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A2$2A.149A.2A$2A.149A.2A$3.149A$2A.
149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.
149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.
149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.
149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.
149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.
149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.
149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.
149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.
149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.
149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.
149A.2A$3.74A.74A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$
3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.
149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.
149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.
149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.
149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.
149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.
149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.
149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.
149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A$3.
149A$2A.149A.2A$2A.149A.2A$3.149A$2A.149A.2A$2A.149A.2A2$2A.2A.2A.2A.
2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.
2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.
2A.2A$2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.
2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.2A.
2A.2A.2A.2A.2A.2A.2A.2A!

Code: Select all

@RULE InverseLOTE

@TABLE

n_states:4
neighborhood:Moore
symmetries:permute
var a={0,1,2,3}
var b={0,1,2,3}
var c={0,1,2,3}
var d={0,1,2,3}
var e={0,1,2,3}
var f={0,1,2,3}
var g={0,1,2,3}
var h={0,1,2,3}
var i={1,2,3}
var j={1,2,3}
var k={1,2,3}
var l={1,2,3}
var m={1,2,3}
var n={1,2,3}
var o={1,2,3}
var p={1,2,3}

0,i,0,0,0,0,0,0,0,1
0,i,j,0,0,0,0,0,0,1
0,i,j,k,l,m,n,0,0,1
0,i,j,k,l,m,n,o,0,1
0,i,j,k,l,m,n,o,p,1
1,a,b,c,d,e,f,g,h,2
2,a,b,c,d,e,f,g,h,3
3,i,0,0,0,0,0,0,0,0
3,i,j,k,l,m,0,0,0,0

Re: Living On The Edge

Posted: December 25th, 2018, 2:40 pm
by Electro_blob
This thread is a little bit confusing, since there is another rule, 345/3/6, which is very similar to this one and which is also called "Living On The Edge." on the life wiki. http://conwaylife.com/wiki/List_of_Generations_rules I thought that was what this thread was refering to, but I guess not? Also there is website dedicated to 345/3/6, which I think is run by the user ynotds. It has a lot of interesting patterns on it, but sadly they're all in GIF forms and hard to copy down. http://www.thewildca.com/