473,387 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Artifical Life - a job for someone else

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
11 1287
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
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
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
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
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
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
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
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

[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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Arnold Y. | last post by:
Hi! Have a Blessed Day! Do you find you often tell yourself, “I need to make a change in my life” Is climbing the corporate ladder robbing you of your life…your family? Are you frustrated...
1
by: Gina | last post by:
I need to add the cell generation to a templated program. I am using graphics magician, but my problem is with the math. I cannot figure out my cell generations. I do know that I need two...
2
by: cmbardon | last post by:
I have a C# application that uses a C++ COM exe server, and I've noticed some strange behaviour with the life cycle of the object. In my .net app, I create an instance of the COM object (generated...
6
by: CapMaster | last post by:
I'm having some trouble programming the game of life. In the version my teacher gave us, it involves a class with a private grid variable for the game. Here's the class she gave us: .. const int...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.