ConwayLife.com - A community for Conway's Game of Life and related cellular automata
Home  •  LifeWiki  •  Forums  •  Download Golly

guns.py

For scripts to aid with computation or simulation in cellular automata.

guns.py

Postby Majestas32 » March 9th, 2018, 11:28 pm

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.
Please, stop spam searching Snowflakes.
User avatar
Majestas32
 
Posts: 524
Joined: November 20th, 2017, 12:22 pm
Location: 'Merica

Re: guns.py

Postby Apple Bottom » March 10th, 2018, 5:59 am

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!
User avatar
Apple Bottom
 
Posts: 1025
Joined: July 27th, 2015, 2:06 pm

Re: guns.py

Postby A for awesome » March 10th, 2018, 10:00 am

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
                q8 = (j1, j2)
                if q8 not in tempgrid: #Needed for S0
                    tempgrid[q8] = 0
after the lines
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
User avatar
A for awesome
 
Posts: 1818
Joined: September 13th, 2014, 5:36 pm
Location: 0x-1

Re: guns.py

Postby Majestas32 » March 10th, 2018, 2:53 pm

When trying to search p88 in b2-a3cs12-i it returns 0 results. Halp
Please, stop spam searching Snowflakes.
User avatar
Majestas32
 
Posts: 524
Joined: November 20th, 2017, 12:22 pm
Location: 'Merica


Return to Scripts

Who is online

Users browsing this forum: No registered users and 1 guest