8000 GitHub - Mishalto/game_of_life_v2.0: Optimization attempt
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mishalto/game_of_life_v2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Conway's Game of Life is a cellular automaton devised by mathematician John Conway. It simulates the evolution of cells on a grid according to a few simple rules. Each cell can either be "alive" or "dead," and their state is determined by the states of neighboring cells.

The game progresses in discrete time steps, and the state of the grid evolves based on the following rules:

  • A live cell with fewer than two live neighbors dies (underpopulation).

  • A live cell with two or three live neighbors remains alive.

  • A live cell with more than three live neighbors dies (overpopulation).

  • A dead cell with exactly three live neighbors becomes alive (reproduction).

Design

To set the initial positions of the cells, the set_start_position function is used. You need to specify the coordinates of all living cells in a vector, along with their count.

Build

  1. Clone the repository
  2. Open the project in CMake.
  3. CMake will automatically pull all necessary dependencies, and the project will be ready to use.

About

Optimization attempt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0