Page 1 of 1

Adjudication of melees

Posted: Wed Aug 18, 2021 7:33 pm
by CharlesdeBatz
Is there a defined order in which melees are adjudicated? There are frequently cases where multiple units are involved in adjacent melees; in these instances, the order in which adjudication occurs can substantially affect the outcome.

Re: Adjudication of melees

Posted: Thu Aug 19, 2021 12:18 am
by SnuggleBunnies
CharlesdeBatz wrote: Wed Aug 18, 2021 7:33 pm Is there a defined order in which melees are adjudicated? There are frequently cases where multiple units are involved in adjacent melees; in these instances, the order in which adjudication occurs can substantially affect the outcome.
I believe it is ongoing melees in the order that they were originally started, with all pursuit charges after that.

Re: Adjudication of melees

Posted: Thu Aug 19, 2021 5:04 pm
by CharlesdeBatz
So even within a single turn, if unit A charges before unit B, unit A will always have its melee adjudicated before B in the subsequent melee phases?

Re: Adjudication of melees

Posted: Fri Aug 20, 2021 1:50 am
by SnuggleBunnies
CharlesdeBatz wrote: Thu Aug 19, 2021 5:04 pm So even within a single turn, if unit A charges before unit B, unit A will always have its melee adjudicated before B in the subsequent melee phases?
I believe that is the case, yes. But I have not actually looked into the code to confirm, that is just my impression from large amounts of play. I suppose if you really wanted to, you could *very* carefully watch one of my recorded matches to check.

Re: Adjudication of melees

Posted: Fri Aug 20, 2021 6:27 am
by rbodleyscott
It isn't as simple as that, it depends on whose turn it is. When a unit is fighting multiple opponents, in the melee phase of its turn (before it moves) then indeed its melees will be adjudicated in the order they were initiated. However, in the melee phase of the enemy turn (before the enemy move) it will be determined by the same applying to each enemy unit.

The actual order in which units are activated in the melee phases is indeterminate - the order is chosen by the engine according to an arcane black box algorithm. I do not have access to the engine source code, so I cannot tell you how it works.