Search found 647 matches

by Gustavo6046
January 22nd, 2016, 9:13 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

Thanks! Just fixed it. It works fine for a few cycles, then crashes because of a line 141 IndexError: import golly as g from sys import exit from time import sleep import ConfigParser as cp import os, glob herschels = [] stillLifes = [] def celleq(self, other): if self != [] or other != []: ssort, o...
by Gustavo6046
January 22nd, 2016, 7:52 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

OK, I'll use your variant them. But I guess it's later, because I have YET ANOTHER error in my hands: (oh crap) import golly as g from sys import exit from time import sleep import ConfigParser as cp import os, shutil herschels = [] stillLifes = [] def celleq(self, other): ssort, osort = g.evolve(se...
by Gustavo6046
January 22nd, 2016, 7:09 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

I tried inserting Nathaniel's RLE script but it gives me a "int object has no attribute '__getitem__'" error, which is omfg very freaking weird. Maybe it's for older Python versions?
by Gustavo6046
January 22nd, 2016, 6:44 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

Working HRF v0.2: import golly as g from sys import exit from time import sleep import ConfigParser as cp import os herschels = [] stillLifes = [] def celleq(self, other): ssort, osort = g.evolve(self, 0), g.evolve(other, 0) return g.transform(ssort,-ssort[0],-ssort[1]) == g.transform(osort,-osort[0...
by Gustavo6046
January 22nd, 2016, 5:47 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

This is a experimental HRF version that inputs from a config file (.ini): import golly as g from sys import exit from time import sleep from ConfigParser import RawConfigParser found = False herschels = [] stillLifes = [] def celleq(self, other): ssort, osort = g.evolve(self, 0), g.evolve(other, 0) ...
by Gustavo6046
January 22nd, 2016, 4:47 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

HRF found this:

Code: Select all

x = 16, y = 11, rule = LifeHistory
2.3D$2.DBD$2.DBD2B6.CB$2.6B.B2.BCBC$2.11B2C$.13B$6B3C5B$.14B$2.12B$2.
4B2.2B3C$8.2B.B!
by Gustavo6046
January 22nd, 2016, 3:54 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

IT WOOORKS import golly as g from sys import exit from time import sleep found = False herschels = [] def celleq(self, other): ssort, osort = g.evolve(self, 0), g.evolve(other, 0) return g.transform(ssort,-ssort[0],-ssort[1]) == g.transform(osort,-osort[0],-osort[1]) assert celleq([0, 1, 0, 2], [0, ...
by Gustavo6046
January 22nd, 2016, 2:36 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

It isn't good enough because it don't support multistate rules. I want HRF to work in multistate rules as well. # ... def celleq(self, other): return g.evolve(self, 0) == g.evolve(other, 0) # Both hand sides are lists, not glife.patterns! No super() needed. # ... def testReaction(xpos, ypos, sli): g...
by Gustavo6046
January 22nd, 2016, 1:26 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

Oh thanks :) I forgot about LifeWiki & the Lexicon. I am fixing HRF and making a Cell list to RLE function: import golly as g import time as t def cell_list_to_rle(debug = False, *cells): if debug == True: g.show(str(cells)) t.sleep(1) top = None left = None bottom = None right = None tmpn = 0 tmpl ...
by Gustavo6046
January 22nd, 2016, 11:17 am
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

How do I automatically archive the piles of crumbs resultable from that Toaster I? (number of conduits + lots o Snarks) The one I posted earlier, where the snarks are adjustable.
Edit: --
gmc_nxtman wrote:Incremental synthesis (haven't made one with kickbacks yet):

Code: Select all

<rle>
What is a kickback?
by Gustavo6046
January 21st, 2016, 7:55 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

This is the VERY FIRST edgy long-boat reaction I've ever found:

Code: Select all

x = 9, y = 13, rule = LifeHistory
6.E$5.E$5.3E7$6.E$5.E.E$2E3.E2.E$2E4.2E!
Unfortunately no use... to a extent...
by Gustavo6046
January 20th, 2016, 12:54 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

I pointed out a similar thing recently: http://www.conwaylife.com/forums/viewtopic.php?f=9&t=1965#p25957 Summary: launch Golly from the terminal and you'll see the print statements. (e.g. by launching /your/path/to/Golly/golly in the terminal) Golly should have a bShowConsole option... I wonder if ...
by Gustavo6046
January 20th, 2016, 9:36 am
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

Can there be a console output as well? I didn't tested print but since there is no console I don't think it would work either.

g.show() don't let you scroll, which is a pity.
by Gustavo6046
January 20th, 2016, 8:00 am
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

There's an ugly but useful workaround for this: Use g.getclipstr() to save the original clipboard string at the beginning , and reinstate it using g.setclipstr() at the end. The only problem is when the original clipboard string is extremely long; it wastes a lot of computation, especially if the w...
by Gustavo6046
January 19th, 2016, 8:07 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

But converting a list into RLE is difficult. Also this is the code (so far): #========== Initialization Script ==============# import golly as g import glife as g2 import os from time import strftime input = g2.pattern(g.getcells(g.getrect())) #Gets the input pattern to test for collisions inputrect...
by Gustavo6046
January 19th, 2016, 5:53 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

How do I convert a cell list to a RLE without header? I am doing a glider collision search script right now...
Also is there some way of using oscar.py in my script?
by Gustavo6046
January 19th, 2016, 8:06 am
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

This text field: xOJdg1V.png Then when you are prompted what result you want, put everything you want the program to stop when it finds. :) You are easily confused huh! In a UT match I would easily win, but no worries, this is no UT. :3 Edit: Also I found something, not that it's very useful: x = 14...
by Gustavo6046
January 18th, 2016, 9:03 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

Select a large area above it and put a SW/SE glider in that "What still life to test?" area! Ahh, thank you. So for instance, I select (0,0)~(20,20) and put a SE glider in for instance, (0,0)? Actually, when you are prompted with the "Which still life to test?", you paste the glider's RLE (without ...
by Gustavo6046
January 18th, 2016, 8:51 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

The selection should be the area where the object can be placed (only the topleft part of it). Yes, and I didn't know what object should be placed there. The still life or the glider or the methuselah? The program puts the pattern you specified in the "What still life to test?" area, even if it isn...
by Gustavo6046
January 18th, 2016, 8:27 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

1. The selection should be the area where the object can be placed (only the topleft part of it). 2. I put a block and a glider and they make a pi. When I select the block's topleft area and destroy the block and run HRF to put another block there and say "Found reaction!" (which would make it stop....
by Gustavo6046
January 18th, 2016, 7:27 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

I believe it's near to getting fixed, but still something is making trouble: import golly as g from sys import exit from time import sleep found = False herschels = [] testrect = g.getselrect(); if testrect == []: g.exit("Select the area where the still life is placeable!") if g.empty(): g.exit("The...
by Gustavo6046
January 18th, 2016, 4:10 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

It has the script to stop when it finds the result. The problem is that it doesn't works for some reason. Oh, I see now. Do you mean that your script doesn't find any solutions? I am not sure but I think this line should be a problem. for y in herschels: if g.getcells(g.getrect()) == y: break You c...
by Gustavo6046
January 18th, 2016, 10:24 am
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

But why doesn't it works? Scorbie tried to help me, but he had no idea what he is doing. I'll try to clarify: This code is a Golly plugin that searches for objects that may come out as a whole from a reaction when a still life bait is placed in the selected area. It is supposed to stop when it finds...
by Gustavo6046
January 17th, 2016, 4:54 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

It has the script to stop when it finds the result. The problem is that it doesn't works for some reason. Btw I updated it: import golly as g from sys import exit herschels = [] testrect = g.getselrect(); if testrect == []: g.exit("Select the area where the still life is placeable!") if g.empty(): g...
by Gustavo6046
January 16th, 2016, 7:56 pm
Forum: The Sandbox
Topic: Gustavo Ramos Rehermann's patterns
Replies: 980
Views: 538305

Re: Gustavo Ramos Rehermann's patterns

Finished the decade's ultimate Search Program!!! *drum roll* HERSCHEL REACTION FINDERRRRRRRRRRRRRRRRRRRRRRR rrrrrrr...erm, import golly as g from sys import exit herschels = [] testrect = g.getselrect(); if testrect == []: g.exit("Select the area where the still life is placeable!") if g.empty(): g....