Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2001:
[Freeciv-Dev] Re: chance of winning a battle
Home

[Freeciv-Dev] Re: chance of winning a battle

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <ChrisK@xxxxxxxx>
Cc: Trent Piepho <xyzzy@xxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: chance of winning a battle
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxxxx>
Date: Thu, 12 Jul 2001 19:05:54 +0300 (IDT)

On Thu, 12 Jul 2001, Christian Knoke wrote:
> > If you want something hard, figure out multiple unit battles.  For
> > example, if you have three different units which can attack a single
> > enemy unit.  What order should they attack in to minimize the
> > expected value of the unit cost you will lose.
> 
> yep, and vice versa, which one of a stack of units should
> do the defense. This affects all the fighting in the game very
> much.

why, the one who has the greatest chance of winning of course :)
but anyway I think I know an easy solution, just have to check it.

btw, who is "Syela", I cannot find the name in the author's list...

and another question.
Probably it was asked many times before me, but it seems that freeciv's
way of calculating unit's defence is different from CivII's.
Freciv does
          basic_defence * bonus1 * bonus2 *....
and CivII does
          basic_defence * (bonus1 + bonus2 + ... )

I found it in

http://www.freeciv.org/lxr/source/common/combat.c?v=cvs#L258
functions get_defence_power and get_total_defence_power

and in

http://members.ozemail.com.au/~jbreis/civ2/strategy/fwar.html#Weighing the
Odds

respectively.  Is it feature or is it bug?



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