473,560 Members | 2,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1309
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!=o bwAcboefstobudi/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.n l>...
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*******@band ersnatch.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.co m> wrote in message news:<41******* ********@alcyon e.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.go ogle.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1105
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 working for someone else? Is your job holding you back? Are you looking for a way to leverage your time into a larger financial package?
1
9496
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 different arrays. One array is the original grid, and one is the copy of that grid. But, I am stuck..here is my code, if anyone could please help me I...
2
1939
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 RCW), and am able to deal with methods and connection points without any real problems. The object is a member variable of the main client form....
6
4775
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 maxrow = 20, maxcol = 60; // grid dimensions class Life { public: Life (); void initialize(); void print(); void update(); private:
0
7632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7552
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7841
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8066
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7920
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5458
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3605
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2047
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1169
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.