Use point abstraction.
[cellular-automata.git] / life / 001 / bin / life
1 #! /bin/sh
2
3
4 Y=`stty size | awk '{print $1 - 3}'` # Reserve 3 charcters for status bar
5 X=`stty size | awk '{print $2}'`
6
7 NUM_BEAM_PROCESSES=31
8 NUM_LIFE_CELLS=`expr $X \* $Y`
9 NUM_LIFE_PROCESSES=`expr $NUM_LIFE_CELLS + 4`
10 NUM_PROCESSES=`expr $NUM_BEAM_PROCESSES + $NUM_LIFE_PROCESSES`
11
12
13 erl \
14 +P $NUM_PROCESSES \
15 -name life_001@localhost \
16 -noshell \
17 -pa ebin \
18 -life x $X y $Y \
19 -s life bang
This page took 0.075585 seconds and 4 git commands to generate.