- Download and install Python 2.7
- Download and install the latest copy of PyGame
- Run
> python main
The game of life has 4 basic rules:
- Any live cell with fewer than two live neighbors dies, as if caused by under-population
- Any live cell with two or three live neighbors lives on to the next generation
- Any live cell with more than three live neighbors dies, as if by overcrowding
- Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction (or resurrection in our case)
While the game is paused pressing shift
will enter into shape select mode (the board game will change to a light blue).
In this mode right + click
any two blocks to draw a box around a particular cell generation. Clicking save
while in shape select mode will save just the particular region.
While in shape select mode clicking on load
will load a shape and allow you to drop it anywhere on the screen with a left + click
Pressing middle + click
will clear the shape select mode unloading the shape and clearing the highlight from the screen
This is a simple python implementation of the classic Game of Life or Life. Please feel free to experiment with the code and make any changes. I do plan to add some more features/functionality in the future.
Save entire boardLoad boardSave shapesLoad shapes- shape library
Step through generations- Game grid size
- Better configuration settings (rendering speed mostly)
Random pattern generation