473,386 Members | 1,810 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,386 software developers and data experts.

Conway's Life Implementation

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
4 2233

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

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

Similar topics

5
by: Uwe Mayer | last post by:
Hi, I have come across the following statement a number of times: http://mail.python.org/pipermail/python-list/2003-July/171805.html > Python, in general, doesn't try to stop the programmer...
6
by: Paul | last post by:
In real life situation, do we ever come across a situation where we would need two base objects in an object. A snippet is worth 1000 words (: so... class Base { }; class Derived1:public Base...
1
by: athos | last post by:
Hi all, Believe you have sound experience in development, however, if we look at the whole Software Development Life Cycle (SDLC) of the project, say, 1. Project Initiation, 2. Gathering...
4
by: aura | last post by:
anybody got C code for this game of life using 8X8 array
2
by: Martin Platt | last post by:
Hi, I've been working on designing new architecture to be used for future development using C#. We're going quite well with the architecture, having originally decided not to use the dataset,...
0
by: jen4022599 | last post by:
I have written a program to calculate the Conway Sequence (eg 3, 13, 1113, 3113, .....) which is: #include <math.h> #include <stdio.h> int i, f; int con, m, n, p, q, rept, count, r; ...
67
by: bluejack | last post by:
A recent post asking for help with unions reminded me of this component of the C language that I have only used a couple of times, and those almost entirely out of personal whim -- Unions for the...
3
by: Mark Shroyer | last post by:
I guess this sort of falls under the "shameless plug" category, but here it is: Recently I used a custom metaclass in a Python program I've been working on, and I ended up doing a sort of write-up...
1
by: blackslither | last post by:
I had to implement Game of Life in a 3D matrix (int a) , but the complexity of my implementation is O(n^6) (6 imbricated for) and it runs very slow . Can anyone help me with an optimized version of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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,...
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,...
0
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...

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.