summaryrefslogtreecommitdiff
path: root/readme.md
blob: f251d9508156ff8bed63c61d46551de565df64c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Compilation: gcc -o life -lSDL2 life.c

Usage: life B S

	B                   neighbors needed to be born

	S                   neighbors needed to stay alive

Example: life 3 23

	Each cell becomes alive if it has 3 neighbors and stays alive if it has 2 or 3 neighbors.

Keybindings:

	enter               restart with random seed

	backspace           clear screen

	space               pause

	period              step

	g                   toggle grid

	left mouse button   draw

	right mouse button  erase