Conway's Game of Life using SDL2
This is an implementation of Conway's Game of Life using SDL2 libarary for graphics and user input.
In this implementation, world wraps around, that is, cell to the left of leftmost cell is the rightmost cell, right of the rightmost is the leftmost one. World wraps around both horizontally and vertically.
In order to prevent stable state, random cells are made alive every 512 generations ("aliens").
Dead cells are black, alive cells are green. When alive cell dies, it slowly fades from gray to black. If alive cells lives for 16 generations, it becomes "old" and changes color to blue. Aliens are red during the generation that they are injected.
arrow up- increase game speedarrow down- decrease game speedspace- toggle pause/playa- inject aliensc- clear the worldn- go to next generationq- quit+or=- increase cell size-- decrease cell size- left mouse click to toggle cell
Dedicated to 40/3-A19 and everyone who was there ❤️
