Let's hope it's awesome.
Another idea: could the program calculate the division of neutral creatures into stacks? We select our army in the program, enter the number of units, then select the neutral creatures and their estimated number (taken from the guard calculator).
According to the physics model: The distribution of neutral creatures into stacks at the start of the battle follows strict rules and depends on the value of k, which is the ratio of the attacking hero's army strength (A) to the neutral creatures' army strength (H). The army strength is calculated as the sum of the AI Value coefficients.
Ratio | Number of stacks
0.5 | 7 stacks
0.5 … 0.66 | 6 stacks
0.67 … 0.99 | 5 stacks
1 … 1.49 | 4 stacks
1.5 … 1.99 | 3 stacks
2 and more | 2 stacks
This isn't entirely accurate. There's always some variation in the number of stacks. As far as I remember, it's something like this: 1-2, 1-3, 2-4, 3-5, 4-6, 5-7, 6-7. And what's the probability, for example, that with our maximum army, there will be 1 or 2 stacks of neutral enemy creatures? Who knows. Maybe 50/50, or maybe not.