Simon Brooke
e48ad3f891
Added a function to add gradient properties to cells when applying a
...
heightmap, and, in doing so, added a potentially useful generalised function
for mapping onto two dimensional arrays. Needs testing!
2014-07-25 09:49:44 +01:00
Simon Brooke
8e38dc5f87
Actually not sure at this moment what this change was, but tests pass...
2014-07-24 22:31:11 +01:00
Simon Brooke
2d7098458a
Added a utility function to set just one property of just one cell (and
...
tests to prove it worked).
2014-07-24 18:39:48 +01:00
Simon Brooke
3491784282
Rule engine now running very relaibly with no errors showing.
2014-07-20 15:14:10 +01:00
Simon Brooke
601c7d74a6
Still some bugs in rules generated from rule-language source. However,
...
a great deal does work.
2014-07-14 23:21:09 +01:00
Simon Brooke
5bfddf2e28
Much hacking on rule language, getting it to support initial behaviour.
2014-07-13 20:25:48 +01:00
Simon Brooke
57a86ca6c3
Mainly documentation tidy-up, a little code tidy-up.
2014-07-08 19:15:07 +01:00
Simon Brooke
1c0f6079d9
Fixed so that the dummy test passes. Obviously, it would have been better
...
to write real tests...
2014-07-07 19:35:46 +01:00
simon
8593289a7b
Bug fixed!
2014-07-04 09:33:46 +01:00
simon
6320b3e5b0
There's a null pointer exception that currently occurs when a rule maps
...
onto neighbours, e.g.:
(map #(population % :deer) (get-neighbours world cell))
I've worked around it for now by commenting out the rules which do this,
but the bug is in get-neighbours and should be fixed there.
2014-07-04 09:10:58 +01:00
simon
8a00e5c0da
A great deal of change, mainly tidy-up and documentation, but also
...
added reading heightmaps.
2014-07-03 20:17:24 +01:00
Simon Brooke
0dc6aab59d
Minor changes
2014-06-30 22:37:37 +01:00
Simon Brooke
977947d4b0
Now runs rather nicely, although output could be tidied up a bit!
2014-06-30 12:14:58 +01:00