X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=001%2Fbin%2Flife;h=993ca12663e9667acdab91e4e082cb8a3e2bb517;hb=160a4566dcc36d03f6af95e7c588cc7453fdd905;hp=87edae8519f70eb2ab863948c617e36fadd522ce;hpb=d2a0e2f9319260ac266296451915776f3399fb70;p=cellular-automata.git diff --git a/001/bin/life b/001/bin/life index 87edae8..993ca12 100755 --- a/001/bin/life +++ b/001/bin/life @@ -4,8 +4,15 @@ 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 \