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:
0d55050
)
Check sleep interval before sleeping.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 3 Sep 2012 18:42:55 +0000
(14:42 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 3 Sep 2012 18:42:55 +0000
(14:42 -0400)
forest-fire/001/src/forest_fire.ml
patch
|
blob
|
blame
|
history
diff --git
a/forest-fire/001/src/forest_fire.ml
b/forest-fire/001/src/forest_fire.ml
index
272815f
..
66285a9
100644
(file)
--- a/
forest-fire/001/src/forest_fire.ml
+++ b/
forest-fire/001/src/forest_fire.ml
@@
-177,7
+177,7
@@
let next_generation forest (width, height) prob =
let rec burn forest size prob interval =
term_reset ();
print_forest forest;
- minisleep interval;
+
if interval > 0.0 then
minisleep interval;
burn (next_generation forest size prob) size prob interval
This page took
0.026717 seconds
and
4
git commands to generate.