Commit graph

4 commits

Author SHA1 Message Date
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0
(cherry-picked from commit bc4d22dc72)
2018-10-07 03:23:36 +00:00
András Salamon
6e8679bef8 update prkill, print less zero values, faster for non-drain units 2005-12-06 21:18:23 +00:00
András Salamon
0fe75098e2 prkill-1.11, now stops drain going over max hp,
...calculates probability function for the case where a unit was killed
2005-11-01 19:12:02 +00:00
András Salamon
4974fac59a prkill 1.10, helper script to calculate probabilities to kill in a skirmish.
This is more general than the in-game code in Damage Calculations
since it handles berserk.  It computes the joint conditional
probability function of the hitpoints each unit will have at the end
of the skirmish.  The algorithm is currently slow: O(r*(n+N)*(h*H))
operations (n and N are number of swings per round, h and H are
hitpoints, and r is 30 if berserk is in effect otherwise 1).  Hence,
probably not yet suitable for AI use.
2005-10-22 17:16:01 +00:00