empserver/tests/fairland/stunted-newcap_script
Markus Armbruster 18687315ac fairland: Fail when island can't be placed, for fairness
The previous commit made island distribution more fair by placing
islands close to a continent in turn.  This is still unfair when
fairland can't place all the islands.

Make grow_islands() fail when it can't place all islands, and main()
start over then, just like it does when grow_continents() fails.

Deities can no longer fill the world with islands by asking for a
impossibly high number of islands.  Tolerable loss, I think.

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

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2021-01-05 10:41:36 +01:00

17 lines
234 B
Text

add 1 1 1 p
newcap 1 1,11
add 2 2 2 p
newcap 2 43,7
add 3 3 3 p
newcap 3 24,10
add 4 4 4 p
newcap 4 3,1
add 5 5 5 p
newcap 5 34,20
add 6 6 6 p
newcap 6 28,0
add 7 7 7 p
newcap 7 48,28
add 8 8 8 p
newcap 8 4,22
add 9 visitor visitor v