Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Conway's Life Implementation

Reply
Thread Tools

Conway's Life Implementation

 
 
Putty
Guest
Posts: n/a
 
      08-27-2006
Hi. I was going to write an implementation of John Conway's Life game
using Python and Tk, but I soon found that Tk just didn't cut the
mustard for memory usage, management, and the like for such a project,
so I've found my best GUI bet for my project is wxPython and not
pygame.

Anybody have any advice thus far?

Anyway, my real question is if anybody knows of any tutorials or source
code from other implementations and other languages that may prove
useful?

 
Reply With Quote
 
 
 
 
Eric_Dexter@msn.com
Guest
Posts: n/a
 
      08-27-2006

Putty wrote:
> Hi. I was going to write an implementation of John Conway's Life game
> using Python and Tk, but I soon found that Tk just didn't cut the
> mustard for memory usage, management, and the like for such a project,
> so I've found my best GUI bet for my project is wxPython and not
> pygame.
>
> Anybody have any advice thus far?
>
> Anyway, my real question is if anybody knows of any tutorials or source
> code from other implementations and other languages that may prove
> useful?


I find that wxPython is very easy to use.. I just noticed a graphic
library that may or may not help
http://language-binding.net/pypluspl...p/easybmp.html
I am not sure if you can work with pixels with wxPython but you can
probily do the life game with tiles also..

 
Reply With Quote
 
 
 
 
Putty
Guest
Posts: n/a
 
      08-27-2006
Do you think it would be reasonable to use wxGrid to make the game
area?

wrote:
> Putty wrote:
> > Hi. I was going to write an implementation of John Conway's Life game
> > using Python and Tk, but I soon found that Tk just didn't cut the
> > mustard for memory usage, management, and the like for such a project,
> > so I've found my best GUI bet for my project is wxPython and not
> > pygame.
> >
> > Anybody have any advice thus far?
> >
> > Anyway, my real question is if anybody knows of any tutorials or source
> > code from other implementations and other languages that may prove
> > useful?

>
> I find that wxPython is very easy to use.. I just noticed a graphic
> library that may or may not help
> http://language-binding.net/pypluspl...p/easybmp.html
> I am not sure if you can work with pixels with wxPython but you can
> probily do the life game with tiles also..


 
Reply With Quote
 
Eric_Dexter@msn.com
Guest
Posts: n/a
 
      08-27-2006

Putty wrote:
> Do you think it would be reasonable to use wxGrid to make the game
> area?
>
> wrote:
> > Putty wrote:
> > > Hi. I was going to write an implementation of John Conway's Life game
> > > using Python and Tk, but I soon found that Tk just didn't cut the
> > > mustard for memory usage, management, and the like for such a project,
> > > so I've found my best GUI bet for my project is wxPython and not
> > > pygame.
> > >
> > > Anybody have any advice thus far?
> > >
> > > Anyway, my real question is if anybody knows of any tutorials or source
> > > code from other implementations and other languages that may prove
> > > useful?

> >
> > I find that wxPython is very easy to use.. I just noticed a graphic
> > library that may or may not help
> > http://language-binding.net/pypluspl...p/easybmp.html
> > I am not sure if you can work with pixels with wxPython but you can
> > probily do the life game with tiles also..


void wxGrid(wxWindow *parent, int x, int y, int width, int height, long
style=0, char *name="grid")

Constructor. Before using a wxGrid object, you must call CreateGrid to
set up the required rows and columns.

Looks like it may be right up your alley, here is a couple links that
may be helpfull

http://filburt.lns.mit.edu/oops/Html...xgrid/grid.htm

http://www.google.com/custom?q=wxGri...D%3A1%3B&hl=en

and mine that probily isn't

 
Reply With Quote
 
Andrew Trevorrow
Guest
Posts: n/a
 
      08-28-2006
"Putty" <> wrote:

> Hi. I was going to write an implementation of John Conway's Life game
> using Python and Tk, but I soon found that Tk just didn't cut the
> mustard for memory usage, management, and the like for such a project,
> so I've found my best GUI bet for my project is wxPython and not
> pygame.


You might enjoy looking at Golly, an open source, cross-platform Life
app which uses Gosper's hashlife algorithm to allow the exploration of
patterns at huge scales and speeds:

http://golly.sourceforge.net/

Golly's GUI is written in wxWidgets (C++, not wxPython) but we do
use Python as our scripting language:

http://golly.sourceforge.net/Help/scripting.html

Andrew
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Life Balance Coaching: Balance Work And Life Like A Pro 88059355 Digital Photography 1 01-06-2008 07:32 PM
The Nature Of Life As Seen From Earth - Life Energy Particles - Perception At A Distance {HRI 20010829-pi9-V2.0} - (part issue 9 Version 2.0 on 21 Aug 2005) Koos Nolst Trenite DVD Video 1 08-28-2005 09:23 AM
Have trouble in your life? Having the best time in your life? psion Computer Support 11 05-18-2004 06:51 AM
Flash memory udeful life and data storage life jriegle Digital Photography 0 10-16-2003 11:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57