Change fairland island size probability distribution

Island size is randomly chosen from the interval [1..2*is+1], with
expected value is.  Use two dice to roll the size instead of one.
This makes extreme sizes much less likely.
This commit is contained in:
Markus Armbruster 2013-03-31 11:05:32 +02:00
parent afc0ef94ee
commit c798863bd7
3 changed files with 756 additions and 756 deletions

View file

@ -812,7 +812,7 @@ grow_islands(void)
secs = 0; secs = 0;
if (!place_island(c, &x, &y)) if (!place_island(c, &x, &y))
return; return;
isiz = roll(2 * is - 1); isiz = roll(is) + roll0(is);
do { do {
++secs; ++secs;
find_coast(c); find_coast(c);

View file

@ -16,44 +16,44 @@ World dimensions: 64x32
seed is 1 seed is 1
placing capitals... placing capitals...
growing continents... growing continents...
growing islands: 1(22) 2(25) 3(21) 4(15) 5(21) 6(13) 7(29) 8(15) 9(12) 10(15) growing islands: 1(11) 2(25) 3(9) 4(21) 5(29) 6(16) 7(23) 8(18) 9(7) 10(4)
elevating land... elevating land...
designating sectors... designating sectors...
adding resources... adding resources...
setting coastal flags... setting coastal flags...
writing to sectors file... writing to sectors file...
. e e e e e . . % % % % . # # i i . . . . . . . % . % . . % % % . e e e e e . % % % % . . # # i i . . . . . % % % % . . . % % .
. e e e . e . % % % % . i i i i . . . . . . . . % % % . . % % % . e e e . e . % % % % . i i i i . . . . . . % % . . . . . % % %
% . . . . . . . % % % . i i i i . . g g g . . . % % % % % . % % % . . . . . . % % % . . i i i i . . g g g . . . . . . . . % % %
% . % % % % . % . . % . i i i . . g g g g . . . % % % % . . . . % . % % % % . . . . . . i i i . . g g g g . . . . . . . % % % %
. . % % % % . % . . . . . i i . . g g g g g g . . % . . . . . . % . % % % % % % % % . . . i i . . g g g g g g . . . . % % % . .
. . % % % . . . . . . . i i . . g g g # # g g . . . . . . . b . . % % % . . . % . . . . i i . . g g g # # g g . % % . % % . b .
b . % . . . a . . a a . . . . . . g g g g g . . . . . . . . b b b . % % . . a . . a a . . . . % . g g g g g . . % % . . . . b b
b . . % . a a a a a . . . . . % . g g g g . . % % . . b b b b b b . . . . a a a a a . . . . % % . g g g g . . . . . . b b b b b
b b . % . a a # # . . . . . . % % . . . . g . . % % . b b # # b b b . . . a a # # . . . . . % % % . . . . g . . . . . b b # # b
b . % . a a a a a a . . . % % % % % % % . . % . % . b b b b b b b . . . a a a a a a . . . % % % % % % % . . . . . . b b b b b b
. . % % . . a a a a a a . . . % % % % % % % % . % % . b b b b . . . . . . . a a a a a a . . % % % % % % % % % . . . . b b b b .
. . % % . a a a a a a . . . . . . % % % % . . % % % . . b b . . . . . . . a a a a a a . . . % % % % % % % . . . . . . . b b . .
. % % % % . . . . . . . . % . % . % % . . . d . % % % % . . . . . . . . . . . . . . . . . . . . . . . . . . d . . . . . . . . .
% % % % % % % % % % . . % % % % . . . . . . d . . . % . . . . . . . . . . . . . . . . . . . . % % % % % . . d . . . . . . . . .
% % . . % % % % % . . % % % % % . . . . . d . d d d . . . . . . . . . . . . . . . . % % % % . . % % % % . d . d d d . . . . . .
. . j . . . . . . . . % % % % . . . . . d d d d d . . . . . . % . . j . . . . . % % % % % . . % % % % . d d d d d . . . . . . .
. j j j j j j . . . . . % % % % . . . . d d d # # d . . . . . . . j j j j j j . % % % % . . . . % % % . d d d # # d . . . . . .
j j j j j j . . . . . . . . . % . . . . d d d d d d . . . . . . j j j j j j . . % % % . . . . . % % % . d d d d d d . . . . . .
j j j # # j j j . . . . . . . . % . . . . d d d d d . . h h . . j j j # # j j j . . . . . . . . % . % % . d d d d d . . h h . .
j j j j j . . . . . f f . . . . . . . . . d . . d . . . h h . . j j j j j . . . . . f f . . . . . . % . . d . . d . . . h h . .
. j j j j . % % . . . f f f f f . . . . . . . . . . . . . h h . . j j j j . . . . . . f f f f f . . . . . . . . . . . . . h h .
. . . . . % % . f f f f f f f . . . . . . . . . . . . . . h h . . . . . . . . . f f f f f f f . . . . . . . . . . . . . . h h .
. . . . % % % % . . f f f f . . . . . c c . . . . . . . . h h h . . . . . . . . . . f f f f . . . . . c c . . . . . . . . h h h
h h h . % % % % . f f # # f . . . . . c c c c . . . . . # # h h h h h . . . . . . f f # # f . . . . . c c c c . . . . . # # h h
h . . . . . . . % . f f f f f . . . . . c c c . . . . . . h h h h . . . . . . . . . f f f f f . . . . . c c c . . . % % . h h h
. . . . . . . % % . . . . f f . . . c # # c . . . . % . h h h h . . . . . . . . . . . . . f f . . . c # # c . . . . % . h h h h
h . . . . . . . . . . . . . . . . . c c c c c c . . % % . h h h h . . . . . . . . . . . . . . . . . c c c c c c . % % % . h h h
. . . . e e . . . . . . . . . . . . c c c c c . . % % % . . . . . . . . e e . % % % . . . . . . . . c c c c c . . % % . . . . .
. . . e e e e . . . . . . . . . . . . c c c c . % % % % % % . . . . . e e e e . % % . . . . . . . . . c c c c . . . % % . % % .
. . e # # e . . % % . . . . i . . . . . c c . % % % % % % . . . . . e # # e . % % . . . . . i . . . . . c c . . . . % . % % % .
. . e e e e e . % % . . i i i i i . . . . . . . . % % % % . % . . . e e e e e . % % % . i i i i i . . . . . . . . . . . . . % %
e e e e e e . . % % % . i i i i i . . . . . . . . . . . . % % . e e e e e e . % % % % . i i i i i . . . . . . % % % . . % . . .
A script for adding all the countries can be found in "sandbox/newcap_script". A script for adding all the countries can be found in "sandbox/newcap_script".

File diff suppressed because it is too large Load diff