X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=life%2F001%2Fbin%2Flife;fp=life%2F001%2Fbin%2Flife;h=993ca12663e9667acdab91e4e082cb8a3e2bb517;hb=8d06c463b83b79e046250fbe60e5429f182e3a7a;hp=0000000000000000000000000000000000000000;hpb=4eb3be32ce405e69f39573b5e38171764cd0d789;p=cellular-automata.git diff --git a/life/001/bin/life b/life/001/bin/life new file mode 100755 index 0000000..993ca12 --- /dev/null +++ b/life/001/bin/life @@ -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