Skip to content

A simple implementation of Conway's Game of Life rendered with SDL.

License

Notifications You must be signed in to change notification settings

meteoritenhagel/conways_game_of_life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conways_game_of_life

A simple implementation of Conway's Game of Life, rendered via SDL.

The game's implementation is found in the class GameOfLife in gameoflife.h/gameoflife.cpp. Each cell has a state consisting of 8 bit. The rightmost bit is used to store the dead/alive state, while the other bits are used to store the number of neighbours for each cell.

The example in main generates a uniformly distributed grid of cells of states alive or dead. After 5 seconds, the game starts.

An exemplary state of the program.

About

A simple implementation of Conway's Game of Life rendered with SDL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published