Page 1 of 1
Air drop algorithm
Posted: 15 January 2025, 01:44
by Winn81
I'm playing Sainte-Mère-Eglise scenario. You pick one target hex. Does anyone know the exact algorithm BGA uses to determine where the troops land?
Re: Air drop algorithm
Posted: 16 January 2025, 10:40
by jeroenh
Yes, the airdrop function is defined here as using the RandomWalk algorithm:
https://github.com/bga-devs/bga-memoir/ ... it.php#L65
The Sainte-Mère-Eglise scenario file defines the paramaters of 4 units, with a range of 4:
https://github.com/bga-devs/bga-memoir/ ... se.php#L39