Simon Brooke
630309719e
Merge branch 'feature/2' into develop
2021-12-09 20:03:21 +00:00
Simon Brooke
2cb3a6af6f
Trying to address bit-rot
2021-12-09 20:02:33 +00:00
Simon Brooke
1cb613e6e6
#2 : Minor preparatory changes.
2020-06-06 12:21:54 +01:00
Simon Brooke
2f2463da0e
Sweep up of minor changes
2020-06-03 10:47:28 +01:00
simon
f1b35dc948
Standardised header documentation in line with current best practice.
2016-08-21 14:17:30 +01:00
simon
944b54fc89
Deleted version.clj, which did not work anyway.
2016-08-13 17:41:53 +01:00
simon
21cdff764f
Added namespace documentation conforming to better practice; added GPL
...
declaration; changed 'use' to 'require' passim. All tests pass but that's
not proof we're all good yet.
2016-08-13 17:39:07 +01:00
simon
3c26408a9f
Dememoised get-neighbours, as the optimisation only works in deep
...
recursion which I'm no longer doing.
2015-04-21 07:56:22 +01:00
Simon Brooke
5f73b18d12
Tests now pass again. Oooops.
2015-04-18 21:53:09 +01:00
Simon Brooke
f9591c4e8d
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.
2015-04-18 19:21:04 +01:00
Simon Brooke
337d1ae07e
Further work on the Falls of Clyde problem, and on optimisation.
2015-04-13 20:36:24 +01:00
Simon Brooke
1c8d8c4219
Added merge-cell, and tests for it. Still trying to solve the Falls of Clyde
...
problem
2015-04-12 19:34:19 +01:00
simon
2dbc1cecc5
A possible - untested - solution to the local hollow problem.
2015-04-10 19:55:09 +01:00
simon
fd817f2582
Minor optimisation
2014-10-20 17:01:40 +01:00
Simon Brooke
f06febd7c6
Work on improving efficiency of mapping over arrays.
2014-10-18 15:50:31 +01:00
Simon Brooke
9912f264fa
Some tentative attempts at optimisation. This, actually, makes no
...
difference in itself - because the world is immutable, this change
won't work without a different mechanism for generating the world
itself.
2014-09-06 11:41:09 +01:00
simon
42e6cfac05
Working on getting drainage to actually work - which, inter alia, means
...
further work on efficiency.
2014-08-30 21:58:48 +01:00
Simon Brooke
c96142a973
More work on efficiency
2014-08-29 22:50:11 +01:00
Simon Brooke
1120cb42e8
Work on trying to improve performance.
2014-08-28 21:43:36 +01:00
simon
2bf9d34794
Found a serious fault in display.clj because marginalia picked it up.
...
Hadn't been picked up otherwise because
(1) I hadn't written any unit tests for it, and
(2) it isn't actually used by anything.
Should possibly be deleted.
2014-08-16 21:50:18 +01:00
Simon Brooke
1030ece3ff
Kibitised, and improved test coverage. Cloverage currently failing, don't
...
know why.
2014-08-13 20:02:37 +01:00
simon
3b1d28d3cd
Generalised hieghtmaps so that I can do, for example, rainfall maps,
...
or various geophysics maps.
2014-08-12 19:07:48 +01:00
simon
64ab0b9dd9
Moved some display stuff from ui to engine. Not certain this was the right
...
decision...
2014-08-10 18:31:31 +01:00
simon
1300e8d103
Added a new file drainage.clj which attempts to model rivers; moved
...
some functions from heightmap into utils; added a -archive option to
buildall as first step towards auto-building a Debian package for
Raspberry Pi.
2014-07-31 23:43:02 +01:00
Simon Brooke
7c5e15ca35
Upversioned from 0.1.2-SNAPSHOT to 0.1.2 for release
2014-07-30 13:09:44 +01:00
Simon Brooke
cd99f8fd0b
Gone back (hopefully temporarily) to using collage load-image function
...
while I try to sort out the resources issue. This isn't very satisfactory,
as the collage distribution is compiled using Java 7, which is going to
break for some people, and because I'm bloating my code with two separate
image libraries.
2014-07-30 12:33:45 +01:00
Simon Brooke
c0d26f7cc7
Getting the right data into the manifest; sadly, not succeeding in getting
...
it out again.
2014-07-27 21:05:47 +01:00
Simon Brooke
0652a9ba61
Serious work on the buildall script (and project.clj) to capture a
...
build signature in the MANIFEST.MF file; also, getting rid of dependency
on collage.
2014-07-27 09:40:06 +01:00
Simon Brooke
75475ece29
Considerable refactoring based on the new map-world utility function.
2014-07-25 11:49:50 +01:00
Simon Brooke
4949e30f69
Spelling error :-(
2014-07-25 09:57:04 +01:00
Simon Brooke
bdd707c4fa
Oops! Last commit was premature...
2014-07-25 09:54:21 +01:00
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
8a53adcd11
More optimisation
2014-07-22 02:40:17 +01:00
Simon Brooke
87198076bc
Vectors instead of lists in the world representation results in a
...
remarkable performance increase!
2014-07-21 14:34:01 +01:00
Simon Brooke
06de5d923a
Very minor tidy-up
2014-07-21 11:02:31 +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
d23239a5c6
Improved debugging, and lots more tests. Ultimately I intend the
...
enhanced debugging to be optional, because it will have a performance hit
2014-07-19 13:22:38 +01:00
Simon Brooke
6ac4f55ed5
Added functionality to heightmap to allow a word to be created the size of
...
the supplied heightmap - after all, that's what we will normally want.
2014-07-17 09:50:22 +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
76ab08534c
Almost working; rule editor doesn't save.
2014-07-13 23:55:18 +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
1682050fbd
Still hacking rules
2014-07-04 11:03:39 +01:00
simon
9b52b7229b
Minor hacks trying to understand why some rules aren't working as expected.
2014-07-04 11:01:08 +01:00
simon
ac92181ab3
And another one introduced... and fixed.
2014-07-04 09:46:13 +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