Skip to content

A rudimentary implementation of Conway's Game of Life with a specific initial configuration.

Notifications You must be signed in to change notification settings

akatrack/Game-of-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Game of Life

A rudimentary implementation of Conway's Game of Life with a specific initial configuration.

LIFE is an organism that lives in a discrete, two-dimensional world. This world is an array with each cell capable of holding one LIFE cell. Generations mark the passage of time. Each generation brings births and deaths to the LIFE community.

The births and deaths follow the set of rules that follow:

  1. We define each cell to have eight neighbor cells. The neighbors of a cell are the cell directly above, below, to the right, to the left, diagonally above to the right and left, and diagonally below to the right and left.
  2. If an occupied cell has 0 or 1 neighbors, it dies of loneliness. If an occupied cell has more than 3 neighbors, it dies of overcrowding.
  3. If an empty cell has exactly three occupied neighbor cells, there is a birth of a new cell to replace the empty cell.
  4. Births and deaths are instantaneous, and occur at the changes of generation. A newborn cell cannot resurrect a cell that is dying, nor will a cell's death prevent the death of another, say, by reducing the population.

Notes:

Some configurations grow from relatively small starting configurations, while others move across the region. A simple initial configuration is used here.

Problem description taken from Walter Savitch's "Problem Solving with C++."

About

A rudimentary implementation of Conway's Game of Life with a specific initial configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages