]> git.pond.sub.org Git - empserver/commit
fairland: Make actual island sizes fair
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 11 Aug 2020 14:41:20 +0000 (16:41 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2021 07:27:34 +0000 (08:27 +0100)
commit696d31460c6c30e73238b734b29dc33310ada492
tree2d887caa5fda33347419f7d29c28b3b54af89cb2
parent8d0c196c8bcbe2e17100cd63df29a8007b0f92c5
fairland: Make actual island sizes fair

The previous commit reduced the difference in island size within the
same batch of islands to at most one.  Eliminate the remaining
difference by shrinking the bigger islands by one sector.

This invalidates the precomputed exclusive zones, so recompute them.

fairland-test needs a tweak to avoid loss of test coverage.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/util/fairland.c
tests/fairland-test
tests/fairland/spike.out
tests/fairland/spike.xdump
tests/fairland/stunted-newcap_script
tests/fairland/stunted.out
tests/fairland/stunted.xdump