[Freeciv-Dev] Re: TODO
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> > +- Create a function that gives a statistically excact value for a units
> > + chance of winning a battle.
>
> I wrote a perl version once:
> http://www.mso.anu.edu.au/~dwp/freeciv/misc/fc_combat_odds.pl
> -- David
I converted it to C, but haven't yet freecivisized it. I wanted to understand
it, so the comments have a full formal proff of it's correctness...
Hopefully I will find the time to merge it into freeciv some time; I have some
other usefull combat calculation code to also include.
You have to link with -lm (libm = math.h lib)
-Thue
--------
printf("%s\n", -1L > 1LU ? "C sucks" : "as expected");
fc_combat_odds.c
Description: Text Data
- [Freeciv-Dev] Re: TODO, (continued)
- [Freeciv-Dev] Re: TODO, Raimar Falke, 2000/09/22
- [Freeciv-Dev] Re: TODO, Daniel Sjölie, 2000/09/22
- [Freeciv-Dev] Re: TODO, Gaute B Strokkenes, 2000/09/22
- [Freeciv-Dev] Re: TODO, Greg Wooledge, 2000/09/22
- [Freeciv-Dev] Re: TODO, Gaute B Strokkenes, 2000/09/22
- [Freeciv-Dev] Re: TODO, Erik Sigra, 2000/09/22
- [Freeciv-Dev] Re: -ansi -pedantic, was Re: TODO, David Pfitzner, 2000/09/22
[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 <=
- [Freeciv-Dev] Re: TODO, Trent Piepho, 2000/09/24
- [Freeciv-Dev] Re: TODO, Thue, 2000/09/24
- [Freeciv-Dev] Re: TODO, Thue, 2000/09/24
- [Freeciv-Dev] Re: TODO, Thue, 2000/09/24
- [Freeciv-Dev] Re: TODO, Trent Piepho, 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
|
|