home
/
code
/
cellular-automata.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformatting for consistency.
[cellular-automata.git]
/
003
/
src
/
life.erl
diff --git
a/003/src/life.erl
b/003/src/life.erl
index
74868da
..
5f91d26
100644
(file)
--- a/
003/src/life.erl
+++ b/
003/src/life.erl
@@
-61,7
+61,12
@@
life_loop(
end
),
end
),
- {NewTime, NewBoard} = timer:tc(fun() -> next_generation(X, Y, Board) end),
+ {NewTime, NewBoard} = timer:tc(
+ fun() ->
+ next_generation(X, Y, Board)
+ end
+ ),
+
NewState = State#state{board = NewBoard
,gen_count = GenCount + 1
,gen_duration = NewTime
NewState = State#state{board = NewBoard
,gen_count = GenCount + 1
,gen_duration = NewTime
This page took
0.022344 seconds
and
4
git commands to generate.