Skip to content

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

Notifications You must be signed in to change notification settings

romann-broque/Game_Of_Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published