The Geometry of Empire 3: Game Theory, Raids, and Invasions


Previously we examined border attacks and invasions, and how to best defend against them. But what kind of attack should an attacker launch, and what should the defender guess he’ll launch? These strategic decisions are the topic of this piece, which will touch on game theory as well as geometry.
Four Outcomes
Both sides have two strategies to pick from: the attacker (A) can raid the border or invade the interior; and the defender (D) can position himself to prepare for raids of invasions. The interactions create four possible outcomes:

In the previous two articles, we examined two of these four outcomes: when the defender correctly chose a strategy to match the attacks against him (shaded blue above). The other two outcomes are mismatches, which A certainly prefers (and are shaded red).
Goals
The goal of both parties is to maximize the results in their favor, without necessarily knowing what their opponent has done.
To analyze this, we’ll need to know exactly how good each option is for each side. For our purposes today, we’ll stick to the distance to interception, which the attacker wants to maximize, and the defender wants to minimize. When we find these, we can fill in our strategy matrix, and determine how the two sides should rationally act.
Measuring the Paths
Geometrically, we already determined the defender’s ideal position for the matches. For the mismatches, we’ll use those positions again. Then we can find the distance between defender and attacker, depending on whether he’s moving in or staying at the edge. These are illustrated below, in blue, along with the distance formulae?—?where the angle a is half the sector angle. (I leave the calculations to the interested reader.)

Let’s note a few interesting things here:
- In the invasion / anti-raid scenario (top right), the intercept distance turns out to be constant, at one half the territory radius. This will prove a nice benchmark to measure the other strategies against?—?and will figure in to the defender’s choices about how many sectors to have in the first place.
- In the two invasion scenarios (top row), the attacker is intercepted in different locations. That is, he has penetrated further into the territory; because this depends on how quickly the defender takes to reach him. When we think more about how much damage an attacker can do, this will come up again.
Paths and Sector Size
We’ve illustrated the paths on a 45 degree sector. But we know that the size of the sector changes interception time quite a bit. So let’s plot the interception time for each outcome, based on the number of sectors.

We can see that size matters differently in the four outcomes. More interesting is that there are two distinct domains of behavior, hinging around the six sector mark: below six sectors, raids are always above invasions.
We should therefore analyze the scenario twice, for each domain; possibly a third time for six sectors exactly. We can do this with the strategy matrix introduced at the beginning: because each side holds some of the power over which of the four lines will be used. (A controls the color, B controls the line type.)
Strategy for 1 to 5 Sectors
We can illustrate this set of scenarios with the case of four sectors, and plug the interception distances into our strategy matrix. (Remember that the distances serves as payoffs for both players, with higher being better for A and lower being better for D.)

A wants to know what to do based on D’s actions. But whether he looks in the first or second column, A sees that a raid creates a better outcome for him, with a longer interception time. So he should always raid. D is able to predict this behavior on A’s part, and chooses to block raids?—?we can also see that in either row, the v. Invasion column is always better for D.
We therefore have a straightforward and stable set of strategies for both players. Neither has any incentive to switch, so the game settles into a “Nash equilibrium” with the raid/anti-raid outcome.
Strategy with Six Sectors Exactly
What about the tipping point, in between the two domains?

Interestingly, if D assumes an anti-raiding strategy, A’s decision doesn’t matter (first column). A should therefore adopt a strategy based solely on what happens if D picks invasions (second column); and in that case, A clearly wants to raid. So A will always raid again. D prefers 50% interception to 58%, so will choose an anti-raiding strategy. A Nash equilibrium again.
Strategy for 7 or More Sectors
The other major domain of our system is when there are more than 6 sectors (i.e., sectors of 60 degree or less). Let’s pick 16 sectors to illustrate:

Here there are no dominant strategies: neither player has a clear choice, with one option that’s always better?—?it depends on what the other guy does.
Initial Approach
The defender would like to avoid the worst case of 50% interception time. To do so, he must pick the second column and prepare for invasions. Knowing this, A will assume an anti-invasion defense, and will raid.
But this situation is not stable. After years of raids, D will be tempted to switch strategies and defend against them (upper right box). But if he does so permanently or regularly, A will begin to launch invasions… and then A will go back to defending against them.

Mixed Strategy
The likely result is a situation where one or both players alters their strategy semi-randomly between their options. This is called a mixed strategy, in contrast to the pure strategy of always doing the same thing.
Realistically, D will have a hard time changing strategies: he has to invest in building garrisons, while A can attack more freely. We can probably expect A to raid most of the time (20% is better for him than 16%), but to occasionally invade, getting the bigger payoff. But he won’t invade too much, or D would have to switch strategies.
Getting into the mathematics of this is beyond the scope of this article, however.
Takeaways
We saw here that there are really four different interception paths, arising from each side’s two strategies. These vary with the number of sectors?—?except when an invasion is countered by a raiding defense, which always creates a path of 50% the territory radius. The strategies the two sides favor also therefore change dramatically when there are more than six sectors to defend.

We’ve made a lot of simplifying assumptions to look at this situation. One is that a border raid and an invasion are equally damaging, which is unlikely. Another is that the defender is stuck with a certain number of sectors; when in reality, that is also a strategic decision he can change. Future articles will look at both of these elaborations.
The Geometry of Empire 3: Game Theory, Raids, and Invasions was originally published in Excursions on Medium, where people are continuing the conversation by highlighting and responding to this story.
Powered by WPeMatico