[Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_de
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, Feb 25, 2002 at 04:58:07PM +0000, Gregory Berkolaiko wrote:
> > Ok, you are in for some trouble, boy.
> >
> > First of all, I don't think the desire equation is fully correct.
> >
> > To be mathematically sound it has to be of the following form
> >
> > Desire = Probability_To_Win * Amount_Won - Probability_To_Lose *
> Amount_Lost
> >
> > This would estimate your average win from the action (if you perform this
> > action N times, N is big, you'd be N*Desire better off).
>
> Ack.
>
> > The probabilities are estimated in this way:
>
> > Probability_To_Win = Attack_Rating / (Attack_Rating + Defence_Rating)
> > Probability_To_Lose = Defence_Rating / (Attack_Rating + Defence_Rating)
>
> Side note: I came across these a lot. Should be put into extra
> functions.
to return float? probabilities are between 0 and 1 and should stay there
btw, it is also usually requirewd that
Probability_To_Win + Probability_To_Lose = 1
> > That is, with all other quantities constant and Victim_Count big our
> desire to
> > go and bash this city (possibly alone) would go up. But they are NOT
> > helppless Victims, it's a city, not a stack!!!
>
> You have to distinguish between the case
> - where Victim_Count enemy units will be killed if my unit wins and
> - where another Victim_Count enemy units wait to kill me, even if my
> unit has won
exactly, and these are pretty confused in the code...
>
> > If you want, can add a comment from me: "Extremely dodgy usage of victim
> > count"
>
> Dodgy isn't a common word for a non-native speaker.
>
> Raimar
well, it's an opportunity for a non-native speakers and Americans to learn
British slang ;)
G.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), (continued)
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Petr Baudis, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Raahul Kumar, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Petr Baudis, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Raahul Kumar, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Petr Baudis, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Raimar Falke, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Petr Baudis, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Raimar Falke, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Gregory Berkolaiko, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Raimar Falke, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279),
Gregory Berkolaiko <=
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Raimar Falke, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Gregory Berkolaiko, 2002/02/26
- [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279), Raahul Kumar, 2002/02/25
- [Freeciv-Dev] Re: [PATCH] [1.3] move some common AI equations to kill_desire() (PR#1279), Petr Baudis, 2002/02/26
- [Freeciv-Dev] Re: [PATCH] [1.3] move some common AI equations to kill_desire() (PR#1279), Gregory Berkolaiko, 2002/02/26
- [Freeciv-Dev] Re: [PATCH] [1.3-REAL] move some common AI equations to kill_desire() (PR#1279), Petr Baudis, 2002/02/26
- [Freeciv-Dev] Re: [PATCH] [1.3-REAL] move some common AI equations to kill_desire() (PR#1279), Raimar Falke, 2002/02/26
- [Freeciv-Dev] Re: [PATCH] [1.4] move some common AI equations to kill_desire() (PR#1279), Petr Baudis, 2002/02/26
- [Freeciv-Dev] Re: [PATCH] [1.5] move some common AI equations to kill_desire() (PR#1279), Petr Baudis, 2002/02/28
- [Freeciv-Dev] Re: [PATCH] [1.3-REAL] move some common AI equations to kill_desire() (PR#1279), Raahul Kumar, 2002/02/26
|
|