## guns.py

For scripts to aid with computation or simulation in cellular automata.
Majestas32
Posts: 524
Joined: November 20th, 2017, 12:22 pm
Location: 'Merica

### guns.py

So some time ago A for Awesome gave me his tlife guns script.

I decided to post it here for 2 reasons:

1. How do I run it from cygwin?

2. Can somebody improve it?

Also all the explanation is given in the file named "explanation"

The link is at here in the "casim" folder.

Apple Bottom
Posts: 1030
Joined: July 27th, 2015, 2:06 pm
Contact:

### Re: guns.py

Majestas32 wrote:So some time ago A for Awesome gave me his tlife guns script.

I decided to post it here for 2 reasons:

1. How do I run it from cygwin?

2. Can somebody improve it?

Also all the explanation is given in the file named "explanation"

The link is at here in the "casim" folder.
You posted a link, using an URL shortener no less, to a Wikia page, which has another link to a downloadable archive on Mediafire, which contains a whole bunch of unrelated stuff, along with a script that would've been small enough to tack it onto your post as an attachment... why keep it simple when you can make it complicated, eh?

As for running it on Cygwin: pretty much the same as you'd run Python scripts anywhere else. You do have the Cygwin python package installed, right...?
If you speak, your speech must be better than your silence would have been. — Arabian proverb

Catagolue: Apple Bottom • Life Wiki: Apple Bottom • Twitter: @_AppleBottom_

Proud member of the Pattern Raiders!

A for awesome
Posts: 1991
Joined: September 13th, 2014, 5:36 pm
Location: 0x-1
Contact:

### Re: guns.py

My personal thoughts: if one is concerned about improving it, it would honestly probably be easier just to modify the script I posted to find the 2-engine Cordership at this point, and far more worthwhile in the long run — casim's not exactly well-documented and actually quite buggy as well, and Golly is much faster to run and more intuitive. I don't have the time right now to do that, but I don't know that it would be too hard for anyone that wants to.

P.S. The worst bug in casim at the moment is one that ignores S0 in isotropic-nt rules. To fix, insert

Code: Select all

                q8 = (j1, j2)
if q8 not in tempgrid: #Needed for S0
tempgrid[q8] = 0
after the lines

Code: Select all

if q7 in tempgrid:
tempgrid[q7] += 0x80
else:
tempgrid[q7] = 0x80
in CellularAutomaton.step().
x₁=ηx
V ⃰_η=c²√(Λη)
K=(Λu²)/2
Pₐ=1−1/(∫^∞_t₀(p(t)ˡ⁽ᵗ⁾)dt)

$$x_1=\eta x$$
$$V^*_\eta=c^2\sqrt{\Lambda\eta}$$
$$K=\frac{\Lambda u^2}2$$
$$P_a=1-\frac1{\int^\infty_{t_0}p(t)^{l(t)}dt}$$

http://conwaylife.com/wiki/A_for_all

Aidan F. Pierce

Majestas32
Posts: 524
Joined: November 20th, 2017, 12:22 pm
Location: 'Merica

### Re: guns.py

When trying to search p88 in b2-a3cs12-i it returns 0 results. Halp