[Freeciv-Dev] Re: TODO
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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.
- [Freeciv-Dev] Re: TODO, (continued)
[Freeciv-Dev] Re: TODO, David Pfitzner, 2000/09/24
- [Freeciv-Dev] Re: TODO, Thue, 2000/09/24
- [Freeciv-Dev] Re: TODO, Erik Sigra, 2000/09/24
- [Freeciv-Dev] Re: TODO, Thue, 2000/09/24
- [Freeciv-Dev] Re: TODO, Thue, 2000/09/25
- [Freeciv-Dev] Re: TODO, Trent Piepho, 2000/09/25
- [Freeciv-Dev] Re: TODO, Thue, 2000/09/25
|
|