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

Conway's Life Implementation

P: n/a
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?

Aug 27 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

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..

Aug 27 '06 #2

P: n/a
Do you think it would be reasonable to use wxGrid to make the game
area?

Er*********@msn.com 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..
Aug 27 '06 #3

P: n/a

Putty wrote:
Do you think it would be reasonable to use wxGrid to make the game
area?

Er*********@msn.com 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 :)

Aug 27 '06 #4

P: n/a
"Putty" <ja*******@gmail.comwrote:
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
Aug 28 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.