Since David Dorner (from Germany!) asked, I’ve written up the formula for the ‘Surrounded Penalty’ formula and I guess I should make it public as well!
Now this should apply Android version of Partia 1 and 2, and iOS version of Partia 2.
directly touching = either up, down, left or right of the unit.
x = number of directly touching enemies – number of directly touching allies
y = number of close enemies (distance 2, so including diagonal) – number of close allies
z = number of somewhat close enemies (distance 3) – number of somewhat close allies
if (x == 1) evasion penalty + 5
if (x == 2) evasion penalty + 10
if (x == 3) evasion penalty + 20
if (x == 4) evasion penalty + 40 //surrounded
if (y > 0) evasion penalty + 2 * y
if (z > 0) evasion penalty + 1 * z