By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,231 Members | 1,636 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,231 IT Pros & Developers. It's quick & easy.

Artifical Life - a job for someone else

P: n/a
I really miss a decent Cellular Automota program and I was really
surprised that there weren't lot's of implementations for python.

I've seen 'cage' around, but this uses curses so doesn't work on
windoze :-( *Someone* should do a decent Tkinter version of life !!
Great fun. Unfortunately it won't be me as I've got too many projects
on at the moment....

Regards,

Fuzzyman

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #1
Share this Question
Share on Google+
11 Replies


P: n/a
fu******@gmail.com (Michael Foord) writes:
I really miss a decent Cellular Automota program and I was really
surprised that there weren't lot's of implementations for python.


One of the samples in the PythonCard distribution is an implementation
of the classic Conway "Life".

Nick

--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/psh?')
Jul 18 '05 #2

P: n/a
Michael Foord wrote:
I really miss a decent Cellular Automota program and I was really
surprised that there weren't lot's of implementations for python.

I've seen 'cage' around, but this uses curses so doesn't work on
windoze :-(


I know that Kevin Altis at one point was experimenting with hooking up
CAGE to PythonCard; I don't know how far he got or whether it eventually
got released (as a PythonCard sample). Martijn Faassen was kind enough
to let me know about a CAGE integration he did for pygame, which
apparently is working and he sent me sample code (and I'm sure he'd be
happy to send it to you).

But even if neither of those things interest you, there _is_ a Python
curses module that works with Windows:

http://flangy.com/dev/python/curses/

I haven't looked at it recently, but when it was initially announced I
checked CAGE out in it and found to my pleasant surprise that it worked
flawlessly and I didn't see any problems (the Web page even mentions my
report). As I said I haven't examined it recently, but I'm sure it's
only improved in the meantime.

--
__ Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Winners are men who have dedicated their whole lives to winning.
-- Woody Hayes
Jul 18 '05 #3

P: n/a
Michael Foord wrote:
I really miss a decent Cellular Automota program and I was really
surprised that there weren't lot's of implementations for python.


While not in Python (but Java instead), I've written an
online one-dimensional cellular automata simulator.
http://www.xs4all.nl/~irmen/comp/cellular.html

It creates those funny pictures you may recognise from
Stephen Wolfram's book.

If you want the source code, let me know. It's probably easy
to convert to Python :)

--Irmen
Jul 18 '05 #4

P: n/a
Irmen de Jong <irmen@-nospam-remove-this-xs4all.nl> wrote in message news:<41***********************@news.xs4all.nl>...
Michael Foord wrote:
I really miss a decent Cellular Automota program and I was really
surprised that there weren't lot's of implementations for python.


While not in Python (but Java instead), I've written an
online one-dimensional cellular automata simulator.
http://www.xs4all.nl/~irmen/comp/cellular.html

It creates those funny pictures you may recognise from
Stephen Wolfram's book.

If you want the source code, let me know. It's probably easy
to convert to Python :)

--Irmen


Thanks for the offer !
I think I'll play with the other two suggestions first and see how far
I get ! Learning java to port it over might take me a while longer ;-)

Regards,

Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #5

P: n/a
Nick Vargish <na*******@bandersnatch.org> wrote in message news:<87************@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me>...
fu******@gmail.com (Michael Foord) writes:
I really miss a decent Cellular Automota program and I was really
surprised that there weren't lot's of implementations for python.


One of the samples in the PythonCard distribution is an implementation
of the classic Conway "Life".

Nick


Thanks to you and Eric - looks like a couple of avenues I haven't discovered.

Many Thanks

Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #6

P: n/a
Erik Max Francis <ma*@alcyone.com> wrote in message news:<41***************@alcyone.com>...
Michael Foord wrote:
I really miss a decent Cellular Automota program and I was really
surprised that there weren't lot's of implementations for python.

I've seen 'cage' around, but this uses curses so doesn't work on
windoze :-(


I know that Kevin Altis at one point was experimenting with hooking up
CAGE to PythonCard; I don't know how far he got or whether it eventually
got released (as a PythonCard sample). Martijn Faassen was kind enough
to let me know about a CAGE integration he did for pygame, which
apparently is working and he sent me sample code (and I'm sure he'd be
happy to send it to you).

But even if neither of those things interest you, there _is_ a Python
curses module that works with Windows:

http://flangy.com/dev/python/curses/

I haven't looked at it recently, but when it was initially announced I
checked CAGE out in it and found to my pleasant surprise that it worked
flawlessly and I didn't see any problems (the Web page even mentions my
report). As I said I haven't examined it recently, but I'm sure it's
only improved in the meantime.

Wow - this is impressive.
CAGE works great in this version of curses.

Thanks
Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #7

P: n/a
Michael Foord wrote:
Wow - this is impressive.
CAGE works great in this version of curses.


Yes, he did a fine job.

--
__ Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Nature likes to hide herself.
-- Heraclitus
Jul 18 '05 #8

P: n/a
fu******@gmail.com (Michael Foord) wrote in message news:<6f**************************@posting.google. com>...

But even if neither of those things interest you, there _is_ a Python
curses module that works with Windows:

http://flangy.com/dev/python/curses/


This link appears to be broken. Does anyone have an alternative?
Jul 18 '05 #9

P: n/a

[Simon]
http://flangy.com/dev/python/curses/


This link appears to be broken. Does anyone have an alternative?


It works for me when I cut'n'paste it into my browser, but fails when I
double-click it. It's preceded by a hard tab - that's probably what's
confusing my MUA. Maybe yours has the same problem?

--
Richie Hindle
ri****@entrian.com

Jul 18 '05 #10

P: n/a

"Michael Foord" <fu******@gmail.com> wrote in message
news:6f**************************@posting.google.c om...
I really miss a decent Cellular Automota program and I was really
surprised that there weren't lot's of implementations for python.

I've seen 'cage' around, but this uses curses so doesn't work on
windoze :-( *Someone* should do a decent Tkinter version of life !!
Great fun. Unfortunately it won't be me as I've got too many projects
on at the moment....


Well, this has zip to do with python, but I've really enjoyed playing with
it:
http://psoup.math.wisc.edu/Life32.html

Jul 18 '05 #11

P: n/a
On Tue, 12 Oct 2004 16:54:04 -0700, Irmen de Jong wrote
(in message <41***********************@news.xs4all.nl>):
While not in Python (but Java instead), I've written an
online one-dimensional cellular automata simulator.
http://www.xs4all.nl/~irmen/comp/cellular.html

It creates those funny pictures you may recognise from
Stephen Wolfram's book.

If you want the source code, let me know. It's probably easy
to convert to Python :)


I wrote a one-dimensional cellular automaton program for the Atari 2600.
It only has 40 cells in the line, since that's the maximum resolution
that I could display using the playfield graphics. It's written in
assembly language, because a higher-level language simply won't work on
that system.

http://www.serve.com/derekl/vcs/automaton.html

--
Derek Ledbetter
de****@serve.com

Heavy boots of lead
fills his victims full of dread
Running as fast as they can
Iron Man lives again!
Jul 18 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.