The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. It is Turing complete and can simulate a universal constructor or any other Turing machine. Wikipedia
- Create a CMake-generated project directory by running:
cmake . -B build
- Set it as current directory:
cd build
- Run:
make
- Start the program by compiling the generated binary file with version1 option:
./gol -v <version>
- You may also choose the type2 of the game by option -t.
Example : ./gol -v clipped -t gui
1 Parameters for version can be either "circular" or "clipped". Make attention to the spelling. 2 Parameters for type can be either "terminal" or "gui"
- Press
Ctrl + C
The docs of this step can be generated by running make doc
command in the build directory which creates a doc directory in the source folder. The generated HTML documentation can be viewed by pointing a browser to the index.html file in the doc/html directory.
For creating a distribution tar file for this program, make dist
command in the build directory can be used. As a result of this command, a dist directory gets created containing the tar file which is free from files generated during compilation.
Run make clear
in the build directory to delete all files in the source directory that are created by compiling or building the program.
Run ./tests
in the build directory to see the results of the tests.