Moved Life implementations into 'life' directory.
[cellular-automata.git] / life / 001 / bin / life
diff --git a/life/001/bin/life b/life/001/bin/life
new file mode 100755 (executable)
index 0000000..993ca12
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+
+Y=`expr \`stty size | awk '{print $1}'\` - 3`
+X=`stty size | awk '{print $2}'`
+
+NUM_BEAM_PROCESSES=31
+NUM_LIFE_CELLS=`expr $X \* $Y`
+NUM_LIFE_PROCESSES=`expr $NUM_LIFE_CELLS + 4`
+NUM_PROCESSES=`expr $NUM_BEAM_PROCESSES + $NUM_LIFE_PROCESSES`
+
+
+erl \
+    +P $NUM_PROCESSES \
+    -name life_001@localhost \
+    -noshell \
+    -pa ebin \
+    -life x $X y $Y \
+    -s life bang
This page took 0.028043 seconds and 4 git commands to generate.