4 Commits

Author SHA1 Message Date
Rusty Russell
5e5b383977 Fix completely unrealistic "touched" calculation with almost-correct one.
Fix bug in wesnoth-attack-sim --check which caused it not to warn
about differences.
2006-02-19 12:16:41 +00:00
Rusty Russell
043e69cb2b Enhance attack simulation and prediction file...
...to show problem with "touched" calculation (first step to fixing it).
2006-02-11 10:29:07 +00:00
Rusty Russell
1cfab21cba Change check code to print P(untouched) not P(touched). 2006-01-30 05:37:58 +00:00
Rusty Russell
7d76a74f1f Attack prediction code giving probability of each unit's possible HP values.
Code is not currently built by default, as it's not used anywhere yet.
The tools/ code can be used to check the correctness of the algorithm,
esp for any future modifications.  Handles slow, drain, berserk,
firststrike and swarm.
2006-01-17 13:22:12 +00:00