Added new non-recursive river drainage algorithm. Sadly, it's slower -

twice as slow - but should get around the JVM stack problem. Still haven't
solved laking.
This commit is contained in:
Simon Brooke 2015-04-18 19:21:04 +01:00
parent f9c437d8d3
commit f9591c4e8d
4 changed files with 49 additions and 10 deletions

View file

@ -11,7 +11,7 @@
(world/make-world 3 3)
#(merge %2 {:altitude 100}))
1 1 :altitude 90)]
(is (is-hollow world (utils/get-cell world 1 1))
(is (is-hollow (utils/get-cell world 1 1) world)
"Cell at 1, 1 should be a hollow"))))
(deftest flood-hollow-test