guns.py

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

guns.py

Post by 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.
Searching:
b2-a5k6n7cs12-i3ij4k5j8
b2-a3c7cs12-i

Currently looking for help searching these rules.

User avatar
Apple Bottom
Posts: 1034
Joined: July 27th, 2015, 2:06 pm
Contact:

Re: guns.py

Post by 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
praosylen
Posts: 2443
Joined: September 13th, 2014, 5:36 pm
Location: Pembina University, Home of the Gliders
Contact:

Re: guns.py

Post by praosylen » 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

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().
former username: A for Awesome
praosylen#5847 (Discord)

The only decision I made was made
of flowers, to jump universes to one of springtime in
a land of former winter, where no invisible walls stood,
or could stand for more than a few hours at most...

User avatar
Majestas32
Posts: 549
Joined: November 20th, 2017, 12:22 pm
Location: 'Merica

Re: guns.py

Post by Majestas32 » March 10th, 2018, 2:53 pm

When trying to search p88 in b2-a3cs12-i it returns 0 results. Halp
Searching:
b2-a5k6n7cs12-i3ij4k5j8
b2-a3c7cs12-i

Currently looking for help searching these rules.

Post Reply