Bar string should never be empty.
[cellular-automata.git] / 001 / bin / life
index cb64898..993ca12 100755 (executable)
@@ -1,11 +1,18 @@
 #! /bin/sh
 
 
-Y=`expr \`stty size | awk '{print $1}'\` - 5`
+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 \
This page took 0.023968 seconds and 4 git commands to generate.