home
/
code
/
cellular-automata.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3eea43
)
Fix: sending the current, not next, state back to time.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Sat, 21 Jul 2012 16:38:37 +0000
(12:38 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Sat, 21 Jul 2012 16:38:37 +0000
(12:38 -0400)
001/life.erl
patch
|
blob
|
blame
|
history
diff --git
a/001/life.erl
b/001/life.erl
index
9c84bd8
..
31113cb
100644
(file)
--- a/
001/life.erl
+++ b/
001/life.erl
@@
-121,7
+121,7
@@
cell(MyID, MyParent, MyNeighbors, MyState) ->
cell(MyID, MyParent, MyNeighbors, MyState, {[], States}) ->
LiveNeighbors = lists:sum(States),
MyNewState = new_state(MyState, LiveNeighbors),
- MyParent ! {tock, {MyID, My
New
State}},
+ MyParent ! {tock, {MyID, MyState}},
cell(MyID, MyParent, MyNeighbors, MyNewState);
% Awaiting requests and replies
This page took
0.03224 seconds
and
4
git commands to generate.