Basic demonstration of C++ classes
Go to file
Llewellyn van der Merwe 8deadbcd23
Add instructions for building and running the project
2024-01-13 13:22:45 +02:00
patterns C++ Final Project (first semester) - Coding Component 2020-05-04 02:43:09 +02:00
src C++ Final Project (first semester) - Coding Component 2020-05-04 02:43:09 +02:00
.gitignore Add instructions for building and running the project 2024-01-13 13:22:45 +02:00
CMakeLists.txt C++ Final Project (first semester) - Coding Component 2020-05-04 02:43:09 +02:00
LICENSE Initial commit 2020-05-04 02:14:49 +02:00
README.md Add instructions for building and running the project 2024-01-13 13:22:45 +02:00

README.md

Game of life

This is a demonstration in C++ of a game called Game of life created by John Horton Conway in 1970

The Game Rules

At each step in time, the following transitions occur:

  1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

Building and Running

Prerequisites

  • CMake (Minimum Version 3.16)
  • A C++ compiler (e.g., GCC, Clang)

Building the Project

  1. Clone the repository:

    git clone https://git.vdm.dev/Llewellyn/game-of-life.git
    
  2. Navigate to the project directory:

    cd game-of-life
    
  3. Create and enter the build directory:

    mkdir build && cd build
    
  4. Generate build system files with CMake:

    cmake ..
    
  5. Compile the project:

    cmake --build .
    
  6. Running the Project:

    • After building, run the executable from the build directory.
    ./game-of-life
    

Thank You! (2020/04)