Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: Comments on CMA 2.6
Home

[Freeciv-Dev] Re: Comments on CMA 2.6

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Comments on CMA 2.6
From: Christian Knoke <ChrisK@xxxxxxxx>
Date: Sun, 21 Oct 2001 22:03:48 +0200

Am Sonntag, 21. Oktober 2001 21:20 schrieb Raimar Falke:
> On Sun, Oct 21, 2001 at 08:41:05PM +0200, Christian Knoke wrote:
> > Am Sonntag, 21. Oktober 2001 19:51 schrieb Raimar Falke:
> > 
> > > Example with only two stats: food and shield. The city may
> > > provide the following combinations (all surplus): (f=0,s=10),
> > > (f=2,s=7), (f=11,s=2) and (f=12,s=-1). You now search the maximal
> > > sum of sum=food_weight*food_surplus+shield_weight*shield_surplus.
> > >
> > > food_weight shield_weight best_sum  best_combination
> > >     1             1           13      (f=11,s=2)
> > >     2             1           24      (f=12,s=-1)
> > >     3             1           35      (f=11,s=2) or (f=12,s=-1)
> > >     4             1           47      (f=12,s=-1)
> > >    10             1           120     (f=12,s=-1)
> > >
> > >     1             2           20      (f=0,s=10)
> > >     1            10           100     (f=0,s=10)
> > >
> > > Was this clear?
> >
> > Yes. So the maximal ratio is 1:25, i.e. give up 25 food for
> > a single shield (f=25, s=1). That is pretty much. 1..10 or
> > even 1..5 would be sufficient, don't you think so? I never
> > want to loose 10 gold for 1 shield e.g. On the other hand,
> > if you reintroduce the zero, one could claim the food (surplus)
> > not to be weighted at all. Or do I miss something?
>
> With say 1..5 you may not be able to set every ratio. For example the
> current server ai has:
>
> #define FOOD_WEIGHTING 19
> #define SHIELD_WEIGHTING 17
> #define TRADE_WEIGHTING 12
>

Well, these are valid for the whole game, whilst the human user
adapts the values to the actual game needs.

Christian

-- 
* Christian Knoke                           +49 4852 92248 *
* D-25541 Brunsbuettel                  Wurtleutetweute 49 *
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.



[Prev in Thread] Current Thread [Next in Thread]