This is now up on git hub for people wanting to play with life in
weird universes. https://github.com/ejs/gameoflife


I've added a few basics to make playing allot easier. Build a file of
pairs of numbers on separate lines (or whatever your space needs). For
the basic space every line is a coordinate pair. For the toruses the
first line is used to work out the boundaries of the world and
everything else is a coordinate. Then launch the program with the
relevant arguments. For the torus universe this would be:
    python gameoflife.py -t -f filename -n number_of_iterations


It's fairly easy to add a new world shape once you've got an idea for
one, I've added a see through torus (doughnut) where the point through
the center of the ring of the torus * is also visible to a cell
(giving it 9 neighbours). If anyone forks it and creates new shapes of
space (moibus strips, Klein bottles, non-euclidan surfaces) I'll merge
them in. If you can work out a coordinate system and what neighbour
means for it you've probably already done the hard work.

Ed

On 19 September 2011 21:50, Safe Hammad <[email protected]> wrote:
>
> I like the idea of visualising Game of Life gliders flying around the
> surface of a donut. I imagine interesting things would happen when they
> collide.
>
>>
>> Ed

* easier to write in code or draw than say ;) Still there's probably a
simple word for it that's escaping me

-- 
To post: [email protected]
To unsubscribe: [email protected]
Feeds: http://groups.google.com/group/python-north-west/feeds
More options: http://groups.google.com/group/python-north-west

Reply via email to