]> git.pond.sub.org Git - empserver/commit
fairland: Make planned island sizes fair
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 11 Aug 2020 13:39:31 +0000 (15:39 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:36 +0000 (10:41 +0100)
commitca110e55ed948ac1783bf6e8ba33aae6fa6080db
tree4b0e1f14951d42bead6846e5f16fb636ebc944cc
parent18687315acd19aa43d3da65a48da2a2fcd0e7536
fairland: Make planned island sizes fair

The previous two commits put the same number of islands closest to
each continent.  This one makes their planned sizes match: instead of
rolling dice separately for each island's size, we roll dice only for
the first continent's islands.  The other continent's islands get the
same sizes.

Actual island sizes still differ when islands can't be grown to their
planned size.  To be addressed next.

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/no-spike.out
tests/fairland/no-spike.xdump
tests/fairland/plain.out
tests/fairland/plain.xdump
tests/fairland/spike.out
tests/fairland/spike.xdump
tests/fairland/stunted-newcap_script
tests/fairland/stunted.out
tests/fairland/stunted.xdump