From e7307d06c5c90d9a02ba2d9c107491347983c14e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Wed, 12 Sep 2018 15:11:59 -0300 Subject: initial commit --- readme.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 readme.md (limited to 'readme.md') diff --git a/readme.md b/readme.md new file mode 100755 index 0000000..f251d95 --- /dev/null +++ b/readme.md @@ -0,0 +1,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 -- cgit v1.2.3