]> git.pond.sub.org Git - empserver/commit
fairland: Show a more useful map
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 17 Aug 2020 10:39:04 +0000 (12:39 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:35 +0000 (10:41 +0100)
commitc4441014e33ea24f88ed21915b1bd08f3540c6bc
tree6b4225b1ee1c60873110f5b5ba0e983908d44c9b
parent1cc54f3625360d0760a627568730ffe0f804772d
fairland: Show a more useful map

The map fairland shows has absolute 0,0 in the top-left corner, while
POGO's map * has it in the center.  Shift fairland's map to match
POGO's.

The map shows sea as '.', island sectors as '%', capitals as '#',
mountains as '^', and other continental sectors as a letter or digit
that encodes the continent number modulo 62.  When a continent has no
"other" sectors, its continent number is not shown.  Remove this
pathological case by using letter/digit for capitals, and '#' for
other continental sectors.

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