Search found 102 matches

by The Turtle
July 15th, 2015, 8:38 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

Let's say you have a length-M list and a length-N list. I'm assuming that the cell lists aren't multi-state, so a given (X,Y) is either there or it's not. If the two cell lists are in a predictable order -- e.g., in row order, left to right, as Golly tends to return cell lists from getrect(), evolv...
by The Turtle
July 15th, 2015, 5:34 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

dvgrn wrote: I also went through the basics of slice syntax in code comments toward the top of this thread.
Whoops. I missed that.
by The Turtle
July 14th, 2015, 6:05 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

How can I get the width and height of a pattern relative to the origin? Not quite sure what "relative to the origin" means here, but for any cell_list, min(cell_list[0::2]), min(cell_list[1::2]) is the upper left corner of the bounding box, and max(cell_list[0::2]), max(cell_list[1::2]) is the lowe...
by The Turtle
July 14th, 2015, 2:59 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

Is there a function that returns the different cells in two cell lists? If not, how can I write one? The method I am thinking of is to take the first element of the first list and test whether or not it is in the second cell list, take the second element and compare, etc. Is there a faster way? How ...
by The Turtle
July 10th, 2015, 6:27 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

import golly max_generations = 256 pattern = golly.getcells(golly.getrect()) new_pattern = golly.evolve(pattern, max_generations) text = "In %d generations, this pattern " % max_generations if new_pattern != golly.evolve(new_pattern, 1): text += "does not turn" else: text += "turns " text += "into ...
by The Turtle
July 8th, 2015, 1:39 pm
Forum: Other Cellular Automata
Topic: Brian's Brain
Replies: 30
Views: 16810

Re: Brian's Brain

A wick:

Code: Select all

x = 3, y = 3, rule = /2/3
3A$A.A$.B!
And a wick puffer:

Code: Select all

x = 14, y = 23, rule = /2/3
5.2A$5.2B$7.A$7.B$8.A$7.ABA$7.B.B$6.A$5.AB.B$5.B.BA$6.A.A$9.BA$2A2.AB
3.BA$2B2.AB2.B.A$9.B$9.BA$7.BA2$10.A$9.B.B$6.B.2A2.A$7.AB4.B$9.AB!
by The Turtle
July 8th, 2015, 10:31 am
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

How do I make my own modules where the module file is in a different folder?
Where are all the default Python modules stored? Can I put my module there?
Thanks!
by The Turtle
July 5th, 2015, 12:38 pm
Forum: The Sandbox
Topic: what is “sesame oil”?
Replies: 5
Views: 4157

Re: what is “sesame oil”?

What is this for???
by The Turtle
July 5th, 2015, 12:14 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

QuickLife is a standard, run-of-the-mill totalistic CA algorithm with a few trivial optimisations. As mentioned in the documentation of Golly, this is better for very chaotic schemes like Noah's ark. Hashlife is a very different breed, a program invemted by Gosper in the 1980s for pushing the limit...
by The Turtle
July 5th, 2015, 11:15 am
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

Also, how exactly does QuickLife and HashLife work? Why are they extremely fast? Is it the programming language or something else?
by The Turtle
July 1st, 2015, 10:52 am
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

Code: Select all

import golly
That's what I meant. I was wondering why "import golly" was in the module...
by The Turtle
June 29th, 2015, 12:21 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

Apgsearch questions

How does apgsearch define "stabilized"?
How does apgsearch tell whether or not a pattern is "stable"?

Golly module questions

Is the golly module written in Python?
If so, is the source code available?
Which functions run fastest? slowest? How about others?
by The Turtle
June 28th, 2015, 5:55 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

How does apgsearch remove gliders?
It is efficient?
by The Turtle
June 27th, 2015, 12:47 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

A safe-to-remove zone is a zone where a spaceship can be removed without interfering with the rest of the pattern.
A danger zone is a zone where a spaceship might change the rest of the pattern when the spaceship is removed.
by The Turtle
June 27th, 2015, 10:26 am
Forum: Patterns
Topic: Thread for your unsure discoveries
Replies: 1864
Views: 895843

Re: Thread for your unsure discoveries

I made this two years ago, (when I first discovered Conway's Game of Life) but then found on the wiki that it was just essentially four candelabras. x = 14, y = 14, rule = B3/S23 2ob2o4b2ob2o$2obo6bob2o$3bobo2bobo$4obo2bob4o$o4bo2bo4bo$2b3o4b3o3$2b 3o4b3o$o4bo2bo4bo$4obo2bob4o$3bobo2bobo$2obo6bob2o$...
by The Turtle
June 27th, 2015, 9:13 am
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

? Sorry. I forgot to clarify the picture. The middle squiggle is the pattern. The dotted lines are moving spaceships, which are labeled as Glider or LWSS. The thin black lines are the boundary between glider removal zones. The thin red lines are the boundary between LWSS removal zones. The question...
by The Turtle
June 26th, 2015, 8:55 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

About the glider removal question:
Can you remove gliders based on this? (attached)
Are there some drawbacks of using this method for removing spaceships?
(It's messy writing on a computer)
by The Turtle
June 26th, 2015, 8:43 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

The below code prints [1, 0].

Code: Select all

var = [1]
var.append(0)
print var
This code prints None.

Code: Select all

var = [1].append(0)
print var
Why?

Answer:
append() does not return anything. It's a function that returns None.
by The Turtle
June 26th, 2015, 11:14 am
Forum: General Discussion
Topic: Incomplete proof, please help!
Replies: 5
Views: 3103

Re: Incomplete proof, please help!

1. Each edge of the still life must start with an L tetromino. 2. Only snaking is allowed, and no branches of length two or more can exist. (Is a branch of length 1 allowed? Or not?) Example: ooooooo o versus ooooooo ? o 3. There must be at least 4 L's on each side. (unless the polyomino is a block)...
by The Turtle
June 25th, 2015, 7:31 pm
Forum: Patterns
Topic: Thread For Your Accidental Discoveries
Replies: 1524
Views: 981359

Re: Thread For Your Accidental Discoveries

A fuse producing gliders in the direction of the fuse: x = 2337, y = 2329, rule = B3/S23 10bo$10bo$11o$11bo$12bo$13bo$14bo$15bo$16bo$17bo$18bo$19bo$20bo$21bo$ 22bo$23bo$24bo$25bo$26bo$27bo$28bo$29bo$30bo$31bo$32bo$33bo$34bo$35bo$ 36bo$37bo$38bo$39bo$40bo$41bo$42bo$43bo$44bo$45bo$46bo$47bo$48bo$49bo$...
by The Turtle
June 25th, 2015, 2:17 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

More questions:
1. What is the module glife?
2. Is make_text from glife?
by The Turtle
June 23rd, 2015, 8:20 pm
Forum: The Sandbox
Topic: Mandelbrot set “R2”
Replies: 9
Views: 5255

Re: Mandelbrot set “R2”

It's funny that the article about R2 on Wikipedia says something about speedy deletion...
by The Turtle
June 23rd, 2015, 7:49 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Re: Python Questions

4. Something weird is happening with some of my functions. For example: code I don't know Python, but I've encountered the same problem in JavaScript and the reason is that when you assign an object to a variable, the new variable is not a copy of the old object, but is actually a reference to the ...
by The Turtle
June 23rd, 2015, 2:51 pm
Forum: Scripts
Topic: Python Questions
Replies: 82
Views: 48898

Python Questions

I'm starting this thread for people who are learning Python (like me) and have questions about Python or Golly, as suggested by dvgrn at http://conwaylife.com/forums/viewtopic.php?f=2&t=1694 . For example: (these are my questions) 1. How can I reduce the time it takes to run a script just by modifyi...
by The Turtle
June 23rd, 2015, 2:34 pm
Forum: Patterns
Topic: Slow Salvo Gliders
Replies: 54
Views: 27411

Re: Slow Salvo Gliders

To dvgrn,
I'll put my Python questions on a new thread in Scripts because not all of my questions are pertaining to producing gliders from a slow salvo.
Thanks!