romann-broque / Game_Of_Life

This project aims to recreate the Conway's Game of Life with additional features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Game of Life

๐Ÿ—บ๏ธ Project Overview

The Game of Life is a classic cellular automaton simulation where each cell in a grid evolves over time based on its neighboring cells. The simulation follows specific rules, creating visually captivating patterns that emerge from seemingly simple interactions.

๐ŸŒŸ Key Features

  • Cellular Automaton Simulation: Implements Conway's Game of Life rules for cellular automaton simulation.

  • SFML Graphics: Utilizes the SFML library for graphics rendering, providing an interactive and visually appealing experience.

  • Grid Representation: Represents the cellular grid where each cell evolves according to predefined rules.

  • User Interaction: Allows user interaction to start, stop, and reset the simulation.

  • Pattern Visualization: Visualizes interesting patterns and structures that emerge during the simulation.

๐Ÿš€ How to Run

To run the Game of Life project, follow these steps:

1. Install SFML

Ensure the SFML library is installed on your system. Refer to the SFML installation guide for your platform.

Ubuntu:

sudo apt-get install libsfml-dev -y

Fedora:

sudo yum -y install SFML-devel

MacOS:

brew install sfml

2. Build and Run

make

./Simulation

๐Ÿ•น๏ธ Controls

  • Spacebar: Start/Stop the simulation.
  • H/J: Slow down/Accelerate the simulation.
  • R: Reset the simulation.
  • Left Click: Toggle life/death of cell.

๐Ÿ› ๏ธ Options

It is possible to specify certain option values:

  • Background color
  • Border color
  • Border thickness
  • Cell color
  • Cell size
  • Cell lifetime
  • Food conversion
  • Darkening
  • Food Color
  • Food Presence
  • Grid dimensions
  • Probability of food
  • Probability of life
  • Window dimensions

For more information:

./Simulation -h
# or
./Simulation --help

๐ŸŽจ Additional Information

  • SFML Documentation: Refer to the SFML documentation for detailed information on using SFML in your C++ projects.

  • Conway's Game of Life: Explore the rules and patterns of Conway's Game of Life on the Wikipedia page.

Enjoy exploring the mesmerizing world of cellular automaton with the Game of Life! Experiment with different initial configurations, observe the emergence of patterns, and delve into the captivating dynamics of this simulation. ๐Ÿงฌ๐Ÿ”ฌ

About

This project aims to recreate the Conway's Game of Life with additional features.


Languages

Language:C++ 90.8%Language:Makefile 9.2%