home
/
code
/
cellular-automata.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pointing directly at `awk`, rather than via `env`.
[cellular-automata.git]
/
001
/
bin
/
life
diff --git
a/001/bin/life
b/001/bin/life
index
cb64898
..
993ca12
100755
(executable)
--- a/
001/bin/life
+++ b/
001/bin/life
@@
-1,11
+1,18
@@
#! /bin/sh
#! /bin/sh
-Y=`expr \`stty size | awk '{print $1}'\` -
5
`
+Y=`expr \`stty size | awk '{print $1}'\` -
3
`
X=`stty size | awk '{print $2}'`
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 \
erl \
+ +P $NUM_PROCESSES \
+ -name life_001@localhost \
-noshell \
-pa ebin \
-life x $X y $Y \
-noshell \
-pa ebin \
-life x $X y $Y \
This page took
0.028416 seconds
and
4
git commands to generate.