summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'readme.md')
-rwxr-xr-xreadme.md27
1 files changed, 27 insertions, 0 deletions
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