Description • Getting Started • Controls • Patterns • Project Structure • Contribution • License
The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It's a zero-player game that simulates the life cycle of cells on a grid based on initial configurations.
- GCC (GNU Compiler Collection)
- SDL2 library
sudo apt install libsdl2-dev
sudo apt install libsdl2-ttf-dev
To compile the game, run the provided bash script build.sh
:
chmod +x build.sh
./build.sh
The original commande to complie a file is_
gcc -Wall -g -o EXE_NAME FILE_NAME.c -lSDL2
Execute the binary to run the game:
./game_of_life
Use these keys to interact with the game:
h
: Spawn a Glider.g
: Spawn a Gosper Glider Gun.p
: Spawn a Pulsar.m
: Spawn a Hammerheadc
: Clear the grid.ESC
: Quit the game.
The game includes various predefined patterns such as Glider and Gosper Glider Gun, which have unique behaviors within the Game of Life.
The project includes source files (src/
), headers (inc/
), the build script, and this README.
Contributions to the Game of Life project are welcome. Feel free to fork, make changes, and submit a pull request.
This project is open source and available under the MIT License.
GitHub @AlecInfo ·