Skip to content
Conway's game of life in C and SDL2.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Executable download:

Console arguments: (use '.' to use default value)

  1. Screen width
  2. Screen height
  3. Screen update delay (ms)
  4. Spawn probability (0-100) [at first frame of the game]
  5. Cell pixel side length (>0)
  • Sample: conway.exe 1000 500 10 70 1 (100x500 window, 10ms delay, 70% chance of spawning at first frame, with cells of 1 pixel of side size)
  • Sample: conway.exe . . . 50 4 (default window size, default delay, 50% chance of spawning at first frame, with cells of 4 pixels of side size)


  • ESCAPE, Q: Quit
  • P: Pause / Resume
  • Up arrow: Speed up
  • Down arrow: Slow down
  • Mouse left click and drop: Add live cells
  • Mouse right click and drop: Kill cells
You can’t perform that action at this time.