Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] Re: TODO
Home

[Freeciv-Dev] Re: TODO

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Thue <thue@xxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: TODO
From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Date: Sun, 24 Sep 2000 17:35:11 -0700 (PDT)

On Sun, 24 Sep 2000, Thue wrote:
> > double chance(int as, int ahp, int afp, int ds, int dhp, int dfp)
> > {
> >   /* number of rounds a unit can fight without dying */
> >   int att_N_lose = ahp/dfp + ahp%dfp;
> >   int def_N_lose = dhp/afp + dhp%afp;
> 
> Yes, I know, I have to check for the case that either as or ds = 0...

Yes, like I did in my code.  But don't worry, if you think about the problem
long enough, you'll get to where I was.




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