summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2018-09-12 15:11:59 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2018-09-12 15:11:59 -0300
commite7307d06c5c90d9a02ba2d9c107491347983c14e (patch)
tree6a890cc10663caf4d5bd437eb6bef46dc8409bbb /readme.md
downloadlife-e7307d06c5c90d9a02ba2d9c107491347983c14e.tar.gz
life-e7307d06c5c90d9a02ba2d9c107491347983c14e.zip
initial commit
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