Implementation of Conway's Game of Life in C. The Game of Life is a classic simulation that demonstrates the emergence of complex patterns from simple rules.
Project date : 2023
Game of Life, is an example of a zero-player “game” known as a cellular automaton. It consists of a two-dimensional world, divided into “cells”. extending infinitely in all directions.
The set of rules described by Conway are summarized as:
- A living cell will die if it has fewer than two living neighbors. (case of solitude)
- A living cell will also die if it has more than three live neighbors. (case of overcrowding)
- A living cell will survive if it has exactly two or three living neighbors.
- A dead cell will become alive if it has exactly three living neighbors.
Our project is divided into two parts.
- In part A, named "Implementing Evolution", we will focus on implementing the rules needed to evolve the world from one generation to the next.
- In part B, named "The World in a File", we will modify the code so that the initial state of the world can be read from a file, and the final state is output to a file.
- The header file, lifegame.h was given.
- Lifegame.c had to be partially completed
- Lab1a.c and lab1b.c contained empty functions that had to be completed
- The text file glider.txt was also given
- Lorenzo : Co-creator of the project.
- Corentin Hu : Co-creator of the project.
- Sc0pziion : Co-creator of the project.
- Clement Auray : Co-creator of the project.