# src/attack_prediction.cpp, Battle for Wesnoth 1.18.0

*Source* · `src-wesnoth-2024-attack-prediction` · status: **n/a**

| field | value |
|---|---|
| kind | Code repository / dataset |
| authors | Rusty Russell, The Battle for Wesnoth Project |
| venue | GitHub |
| date | 2024 |
| url | https://raw.githubusercontent.com/wesnoth/wesnoth/1.18.0/src/attack_prediction.cpp |
| accessed | 2026-11-01 |
| notes | The attack-prediction code computes the distribution of combat outcomes, with a Monte Carlo implementation of its combat matrix. |

## Backlinks (computed)

**cited by:** [Branch preview of policy futures](../opportunity/branch-preview-forecasts.md)

## Citation

Rusty Russell, The Battle for Wesnoth Project (2024). *src/attack_prediction.cpp, Battle for Wesnoth 1.18.0*. GitHub https://raw.githubusercontent.com/wesnoth/wesnoth/1.18.0/src/attack_prediction.cpp

---
Provenance: created in run `2026-11-01-es-v3-prior-art`.
