Skip to content

Latest Finals

How the CPU managers in Baseball Sim Leagues think

Every empty seat in a Baseball Sim Leagues league is filled by a CPU manager. They draft, set lineups, work the bullpen, make trades and answer yours. A league can be all CPUs except you, so they have to be good company: beatable, but not pushovers, and never doing anything a real dugout would laugh at.

This post explains how they decide, and what we learned by making them play each other for hundreds of seasons.

The same code as your team

There is no "AI mode" in the game engine. The logic that decides when to pull a CPU's starter is the same logic that runs your bullpen during a sim. In-game, every manager is a set of six tendencies: how quick the hook is, how aggressively the bullpen is used, and how often to pinch-hit, steal, bunt and walk a hitter on purpose. A CPU manager is just one particular set of them.

That keeps a league fair without anyone having to prove it. Your team is not managed worse than the CPU's, because there is only one manager.

Every call starts with leverage

Before any decision, the manager reads the leverage of the moment: how much the next plate appearance could swing the chance of winning. An average plate appearance is 1.0. A tie game in the ninth with the bases loaded is above 3. A 9–1 game in the fourth is about 0.2.

Leverage is what separates a manager from a rulebook. The same bunt is smart in a tie game in the ninth and silly in a blowout, and no rule written only in innings and score gets that right.

Within each plate appearance, the decisions come in the order a real dugout makes them:

  1. Intentional walk? Only late, with first base open and a runner in scoring position, when the batter is clearly more dangerous than the man on deck, and never when the walk would put the go-ahead run on.
  2. Pinch hitter? With no designated hitter, hitting for the pitcher is routine from the sixth inning on when the team is not ahead. With a DH it is rare. It takes a bench bat that is clearly better in this matchup, at a moment that matters.
  3. Bunt? A pitcher with a runner on and nobody out bunts three times in four. A position player bunts only late, in a close game, from the bottom of the order. A bunt can also go wrong: a force at the lead base, or a popup.

Steals are two separate questions. Whether to run is the manager's call: late and close, never in a blowout. Whether the steal works is the runner against the catcher and the pitcher's hold. Keeping those apart stops an aggressive manager from looking skilful when he is only aggressive.

The hook

When to take the starter out is the one decision a game cannot be played without, and it took the most tuning.

Between innings, the chance of a change stays flat until the starter nears his limit, then climbs steeply. His limit is the earlier of his own stamina and his era's habit. A 2019 workhorse with 115 pitches in him still comes out around 100, because that is how 2019 managers worked. Each season's habit is measured from how deep its starters really went, and that, more than any difference in arms, is why complete games were normal in 1927 and almost gone by 2019.

During an inning, the manager only goes to the bullpen with runners on and the starter past the midpoint of his pitch count. A jam at twenty pitches is the starter's to get out of. A bases-loaded seventh in a one-run game gets the bullpen. Two on in the eighth at 6–1 does not.

Who comes in depends on the role: the closer for a save, a mop-up arm for a blowout, the setup men late and close, middle relief otherwise. A closer used in the sixth inning of a blowout is the quickest way an AI manager gives itself away, so ours does not do it.

Measured over twenty simulated seasons, starters average 5.1 innings a start, 1.5% of starts are complete games, a save is recorded in 45% of wins, and each team uses about 0.12 intentional walks and 0.20 pinch hitters a game with a DH. Every one of those lands inside the range we set from real baseball.

Between games: one measure of value

For the draft, trades and waivers, a CPU manager values every player in one unit: runs above replacement. That is the runs a player adds compared with someone freely available, over a full-time season. For hitters it includes defence and the usual adjustment for how hard their position is to play.

Trades and waiver claims are decided on what a player is worth to this team, not on his value in a vacuum. A third catcher is worth little to a team with two good ones.

Difficulty is how well it sees, personality is what it likes

Every CPU has a difficulty and a personality. The difficulty is set for the league, and with Premium a commissioner can also set it team by team.

Rookie Veteran Legend
Misjudges a player's value by up to 25% 10% 3%
Sees defence no yes yes
Sees platoon splits no no yes
Watches rivals' needs in the draft no no yes
Extra value it needs to accept a trade none 10% 20%

Personality is a gentle lean on top: toward power, plate discipline, contact, speed, defence, youth or pitching. Old-School Earl plays for one run and leaves his starter in. Moneyball Maya buys on-base percentage and never bunts. Arms-Race Alvarez takes pitching early and often. Rebuild Rina drafts for the season after this one. The lean is bounded, so personality changes what a manager likes without making it stupid.

What 200 seasons taught us

To find out whether difficulty means anything, we drafted fresh leagues with half the seats at one difficulty and half at another, then played full schedules with identical in-game managers, so the draft was the only difference. Two hundred seasons for each pairing:

Pairing Games won Seasons won
Legend vs Rookie 59.4% 193 of 200
Legend vs Veteran 59.1% 184 of 200
Veteran vs Rookie 54.3% 144 of 200
Rookie vs Rookie (control) 50.3%

The surprise was where the edge came from. Random error barely mattered. A manager with a Rookie's 25% error and none of its blind spots lost only 51–52% of its games to one without the error, and even a manager drafting completely at random won 43%. The edge came from seeing more. Valuing defence was worth about three points. The biggest single factor was platoon: judging every player only against right-handed pitching overrates left-handed hitters and right-handed pitchers, and fixing that is most of what separates a Legend from a Veteran.

That is a lesson for human drafters too. Know how a player does against both hands and how he fields, not just his headline numbers. How we rate players explains where those numbers come from.

In the draft room

A CPU's pick is its view of each player's value, plus a bonus for positions it still needs. Once it has as many holes as picks left, filling them overrides everything. A Legend also looks at the teams picking before its next turn. If they need the same position and there are not enough good players left to go round, it reaches.

When your own pick clock runs out, or your team goes on autopilot while you are away, the pick is made with Legend judgement and no personality. A missed pick is never a wasted one.

Try them

Every showcase league on this site is run by these managers. Browse the leagues, take over a team from a CPU, or start your own league and fill the empty seats with them. More about drafts and leagues.