]> git.pond.sub.org Git - empserver/commit - src/util/fairland.c
fairland: Add a comment describing how fairland works
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Jul 2020 06:06:19 +0000 (08:06 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:35 +0000 (10:41 +0100)
commitc34df29c6cc6b96e24dce12972d2cdd5a420e5b1
tree6809258757f7349df761d1bace00a3da0afd1d91
parent883f53be74238659d7a26b0aa5d6881e9d289f34
fairland: Add a comment describing how fairland works

A comment describing how fairland works was lost some time after
Chainsaw 3.31.  This is the last known version:

    The algorithm starts out by placing the "capitols" on the torus in
    such a way so as to maximize their distances from one another (this
    uses the perterbation technique of calculus of variations).  Then from
    these seeds, the continents are grown.  The kind of shape they grow
    into is determined by the "spike" argument <sp>--the higher the spike,
    the more spindly they will be.  If you lower the spike, the continents
    will be more round.  The continents never touch one another, the
    argument <di> specifies how many sectors of water should be between
    the continents at all times.  The continents grow to the size you
    specify with <sc> and they all get the same number of mountains
    (specified by <pm>).  The other arguments should be self explanitory.
    If #define ORE 1, then resources will be placed in the sectors as well.
    You can alter the #define ORE_MAX, IRON_MIN, GOLD_MIN, FERT_MAX and
    URAN_MIN to affect what kind of resources the world gets.

It leaves much to be desired.  Add a more thorough one.

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