When pavement ants (the little reddish brown ants you see in sidewalk cracks) have intra-species war they use the concept of a one-to-one correspondence to determine who has a larger army.

Ants pair off locking jaws with another ant of similar size.

Any leftover ants from the larger colony will gang up two on one against the other colony.

Then based on things only ants know either they all go home OR one colony overwhelms the other.

But most of the time only a few ants die.

The ants can't just tell each other the size of their armies, also even if they could the enemy might lie!

So they all pair off holding each other's mandibles and beating the other ant on the head with her antennae.

If there are only a few unpaired ants that means war would be a bad idea and so they just skip it.

@futurebird (at some time I need to telephony: I need your help with something...)