Bots that drive like players
15 Nov 2026
- Bots now simulate each juke tick by tick with the game’s own physics. Against the version before, they won 68 to 70% of 240 games.
- Carriers popping on spikes and gates fell from 13% to 5% of 240 chases.
- We tried 12 changes and left 6 of them off, because their 95% interval on the ladder was not wholly above 50%.
Simulate candidate moves with the game’s own step instead of tuning heuristics, and test every change on a ladder of frozen versions.
These game bots simulate instead of steer. Each candidate move is played forward tick by tick with the game’s own acceleration, damping, bounces and pads, against every place each enemy could be. This fits any physics game where a bot built on heuristics looks clumsy. To check each change, we keep a ladder of frozen bot versions. A change ships only if its whole 95% interval for the win rate against the previous version is above 50%. The wiki page How bots think describes the current state.
Measured how: the bot ladder plays 4 v 4 games of 4 minutes, on each map from both sides, against the frozen previous version.
Exact movement (15 Nov)
- Top speed: bots released the key once they were only 0.2 tiles/s under their target speed, and then coasted at about 6.0 tiles/s instead of the 6.23 that a held key reaches. Now they hold the key. We measured that zig-zagging diagonally gains nothing in this physics.
- Cap races: a carrier near its stand now compares when it would cap with the soonest time any defender could touch it. With 1, 2 and 3 defenders, carriers used to back off from a safe cap 4, 6 and 2 times. Now they do 1, 0 and 0 times.
- Jukes: the bot simulates every move made of two key presses and takes the one that ends furthest toward home while staying out of reach. Spikes, gates and portals count. The search uses typed arrays and allocates nothing per think.
- Pad shots and snipes are lined up by simulating the next few seconds. Bomb carriers know they survive one tag.
- A gate that an enemy can shut now counts as shut. On six gate maps, carriers popping on spikes and gates fell from 13% to 5% of 240 chases. On Classico it fell from 18% to 5%.
| Change | Games | Win rate | Shipped |
|---|
| Exact movement | 240 | 68 to 70% (2.5 caps a game against 1.8) | Yes |
| The same, after the day’s merge | 60 | 69.2% ± 11.4 (2.92 caps against 2.02) | Yes |
| The carrier’s path read with its own route planner | 480 | 65.9% ± 4.2 | Yes |
| Neutral flag guards move with our carrier | 312 | 63.8% ± 5.3 (2.10 caps against 1.67; time spent standing still for more than 1.5 s fell from 54 s a game to 6) | Yes |
| A carrier near the cap ignores a defender who cannot reach it | 240 | 53.3% ± 6.2 | Yes, it fixes a mistake |
| No waiting spot inside a gate that an enemy can shut | 480 | 50.9% ± 4.4 (pops at its own gates 4.11 against 4.36) | Yes, it fixes a mistake |
| The first chaser keeps chasing while a second one cuts off the path | 372 | 49.7% ± 5.0 | No |
| Routes weighed by a shared model of time | 240 | 49.4% ± 6.2 | No |
| Portal routing for defenders | 670 | 48.1% ± 3.8 | No |
| At most two route plans per tick after a grab | 360 | 47.2% ± 5.1 | No |
| One ball per powerup | 360 | 47.1% ± 5.1 | No |
| A strict thinking budget per room | 60 | 40% ± 12 (1.98 caps against 2.55) | No (switched off) |
Each change was played against the version before it; the ± figures are 95% intervals. In Boostball, a keeper that covers its pad let in 7 goals off that pad against 20.
Tried and left off
- Reusing a juke that is still safe on every other think: it ran 36% fewer simulations, but won 63% on the ladder against 71%.
- Claiming powerups by an exact race: we measured no gain.
- A carrier shutting a gate on its chasers by going to the button: both versions capped 43% of the time. A chaser crosses a 6-tile gate tunnel in 0.4 s, and the carrier needs 1 s to reach the button.
Cost
The new moves need more thinking. A room’s tick at p99 went from 0.76 to 1.26 ms. Then we trimmed the cost and kept every decision bit-identical over 86,400 bot-ticks per setup. The snipe check now looks only near each pad’s flight path; it had been 41% of the think time after an event and is now about 5%. A juke search simulates each first key press once, and reuses it for the nine second presses that follow it.
Moving to Box2D on the same day kept the tuning. Expert beat Elite in 78.4% ± 4.1 of 384 games on the old physics and in 80.2% ± 4.0 of 384 games on Box2D. How we bounded the bots’ cost per room is in Rooms on Cloudflare.
Reuse
- Simulate candidate moves with the game’s own step on typed arrays. This works better than tuning heuristics.
- Test every bot change on a ladder of frozen versions with confidence intervals. Keep the losing changes off, even when they seem right.
- To prove that a speed-up changes nothing, hash the decisions over many bot-ticks.