Conway's Game of Life - 1.1
John Slavick (readysquid)
This is my first project using the pygame library. It came together rather quickly, but my algorithm needed some optimization. So after iterating over my code, I managed a 5x performance improvement.
To see all the available command line arguments:
My favorite settings:
Life.py --gridsize=256 --numcells=10000
To profile the code as I did use:
Life.py --gridsize=256 --numcells=10000 --profile
I feel my implementation is pretty optimized. But if you know of any other optimizations, please comment on my blog to let me know about them. Thanks.
Added the ability to create/kill cells with the mouse.
* Create a cell by left clicking
* Kill a cell by right clicking
* Press the Space bar to pause
* Press C to clear all the cells on the board
click to view original size
If you wish to leave a comment, please sign in first.
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
Feb 13, 2012
Jul 5, 2011
Apr 17, 2011
Apr 16, 2011
Apr 15, 2011
Apr 14, 2011
Apr 12, 2011
Apr 11, 2011