So, after that little look back at how Morituri came together, I’d like to talk about how the AI actually plays the game. Let’s follow one AI club through a day and see how it makes each decision, from drawing up a budget to sending its fighters into the arena.
Part 1. Where the money goes
Every in-game day, all 49 AI clubs draw up a budget. They share one neural network, but each club feeds it its own numbers. How much money is left in the treasury once the bills are paid? How many fighters are fit to enter the arena? How many days until the next match?
For anyone who likes the numbers, the network has 512 inputs, four hidden layers of 512 neurons each, and five outputs. Each output scores one budget category. A softmax function turns those scores into shares that add up to 100%. That gives each club a budget for the day, including how much of its available cash to hold in reserve.
Part 2. Who makes the roster?
Next up is the roster planner. It has its own neural network, again shared by all the AI clubs. This one has 512 inputs and four hidden layers of 384 neurons each. It takes in information about both the fighter and the club evaluating them. The question is how useful this particular fighter would be to this particular team.
The network evaluates the fighters already on the roster, the ones on the transfer and slave markets, and the recruits available for hire. Naturally, the club knows more about its own people. On the slave market, for example, it can’t see a fighter’s skills before buying them. It doesn’t even know whether they’re fit to fight.
The roster planner takes those ratings and works out who to keep, who to hire, and who to replace. It weighs what each fighter brings to the team against what they cost to hire and what they’ll want in wages.
Now say our club has a match tomorrow. It’s one fighter short, and there’s barely anything left in the recruitment budget. What does it do? The planner checks what the club owns. It can sell spare gear from the warehouse or sell a fighter on the transfer market, then use the proceeds to bring in someone ready to fight. There’s a catch, of course. If the fighter it sells could have fought tomorrow, that’s one more spot the planner has to fill.
Part 3. Getting everyone dressed
Right, we’ve got a team. Only one problem. The fighters are naked.
This is where the equipment network comes in. It rates the gear a fighter already has on, the items in the club’s warehouse, and anything suitable on the market. Those ratings go to the equipment planner. Trying every possible combination of gear would take a while, so it puts each fighter’s kit together in stages.
- First it picks a fighting style. There are five options. A fighter can use a single one-handed weapon, wield a weapon in each hand, carry a weapon and shield, use a two-handed weapon, or fight at range. The choice depends partly on which weapons are available and which ones the fighter knows how to use.
- Once it has a style, the planner picks the main weapon, then a second weapon or shield if needed. Armour comes next, then a helmet. A ranged fighter can also get a backup weapon for when someone gets a little too close.
- Consumables wait until just before the fight, when the club knows who’s actually going into the arena. The planner checks what’s in stock and decides which extras are worth buying for those fighters.
Now suppose a dagger turns up on the market tomorrow and it’s 1% better than the old one. Are we really going shopping again? This is where the planner uses a bit of hysteresis. For a normal gear swap, it compares the fighter in their current kit with the same fighter in the proposed kit. The upgrade has to improve the fighter’s estimated combat power by at least 10% to justify the switch.
Part 4. Who goes where?
We’re almost ready to send the team into the arena. One more neural network gets a say. It rates each available fighter on three things. How quickly can they deal damage? How much punishment can they take? And how well can they support their teammates?
The lineup planner uses those ratings to pick who fights and where to put them across three lanes. Scouting matters here. If the club has scouted an enemy lane, the planner uses what the scouts actually saw. If a lane is still hidden, it has to estimate how strong the opposition might be.
The planner tries several lineups and looks for the one that gives the team the biggest advantage overall. Say we’re already comfortably ahead in the centre. Putting another strong fighter there might look impressive, but that same fighter could do a lot more for us on a flank.
And that’s how an AI club gets from counting its coins to stepping into the arena. After all that, the rest is almost anticlimactic. If there’s a match that day, the AI plays it. It gets feedback from the fight and from the turn as a whole. If learning is enabled, the game ends the turn by updating the weights of whichever networks have gathered experience. Their next decisions already reflect what they’ve learned.
On my AMD Ryzen 7 5700X3D, all of that takes about 10–12 seconds per turn for all 49 clubs.