This is an implementation of J. H. Conway's cellular automata game of life. Source code uses the basic Win32 API and compiles under Cygwin.
The program is displaying a glider gun. Counters in red are in a steady state.
Drawbacks:
See my design notes for a description of how to run the game and how it is designed.
Source code is distributed under the terms of the GNU General Public License The current version number is 2.0
| Click on the symbol
|
|
|
|
Main program which contains just about everything. |
|
|
Header file containing constants for the game board size, counter display size, time between generations, etc. |
|
|
Windows resource include file. |
|
|
Windows resource file. |
|
|
Windows cursor file. Strip off the .bin extension before using. |
|
|
Windows icon file. Strip off the .ico extension before using. |
|
|
Makefile for Cygwin on Windows |
|
|
Executable for Windows in a PKZipped file. Strip off the .bin extension and unzip. |
On my Windows XP PC system, I use the makefile which is tailored for the Cygwin compiler. I also use the Bloodshed C++ compiler. In Bloodshed C++, create a new Project of the Windows Application type, use the C language, and load the source files above into the project.
|
|
Example Life 1.05 format file for the original glider gun.
|
Download sample patterns with Conway Rules:
pulsar,
puffer,
spaceship,
escort,
barber pole,
oscillators and still lifes
Download sample patterns with Highlife rules:
replicator,
glider gun,
bomber.
Copyright © 1986-2008 by Sean Erik O'Connor. All Rights Reserved. last updated 01 Jan 08.