CQB: the episode 13 attackers (a hostage rescue in a home)
From episode 13 of A Million Tries ("My AI Kept Shooting the Hostage"). Episode 12's attackers moved into homes where bullets go through the inside walls and the hostage can be hit; there they shot the hostage in about one round in ten. Trained in homes (200 generations, then 300 more in two coached runs that made them calmer: fewer runs, fewer back-and-forth turns, fewer loops through the same door), this brain wins more and hits the hostage less. It sees the 160 numbers of the game below.
| vs (2 vs 2 in a home, the hostage can be hit) | attackers win | of which the hostage out |
|---|---|---|
| the defenders trained in homes (d24) | 62% | 44% |
| episode 12's defenders (d23) | 59% | 41% |
| a hand-written camper pair | 54% | 41% |
-
Before training in homes (episode 12's brain, same rules, vs d23): won 36%, walked the hostage out in 14%.
-
The hostage hit by these attackers: 5-6% of rounds (episode 12's brain in a home: 11%).
-
Calmer (coached: a small cost for running, turning back and forth, and door loops; it counts only in how the copies are ranked, never in the result): back-and-forth turns 14.2 -> 7.5 a minute and running 44% -> 14% of the time it moves (the first home brain vs this one; measured on different spawn rules, so read it as a direction).
-
Numbers move by about +-4 points between runs of the same match-up.
-
The game (CQB, two vs two with a hostage, in a home): two attackers vs two defenders in a home generated from a seed (a hallway, bedrooms, a bathroom, a living room, a kitchen; windows; low furniture that stops bodies but not sight or shots, tall furniture that stops everything; drywall inside: a shot goes through it blind, at a quarter of the usual chance through one wall; brick outside), in the dark: each sees only inside its own weapon light (a 90° cone, 20 m) and hears footsteps, doors, shots and reloads through walls. 45 seconds; the defenders win if the clock runs out. The attackers start at two different doors; 60 rounds each (one 30-round magazine and one spare: our rule, real operators carry far more), two flashbangs per attacker (a bang you're not facing blinds a quarter as long), health with wounds, 0.3 s reaction time, loud crashes that stun.
-
The hostage (simplified, as said in the video): it starts at least 6 m from every way in. It can be hit (a body on a shot's line, never a target): the side that hits it loses the round. An attacker beside it (1.5 m, a clear line) for 3 s secures it; it then goes with him, at 60% of his speed, and the attackers win when it's out of the house; the escort down, it stays where it is. The defenders know where it is until it's moved, after that only while they see it, and they hear it being moved (8 m, less through walls).
-
Help it gets from the game: the way to the hostage (and, for the attackers, the way out) as the next step of the shortest walk there: the game finds the way; the brain decides every move.
-
Does: move forward/sideways and turn (3 numbers) and 5 switches (fire, door, run, flashbang, reload), 10 times a second. One brain plays both operators of its side, each on its own numbers.
-
Brain: inputs -> 512 -> 512 (tanh) -> 3 + 5. Evolution strategies (256 slightly changed copies a generation, 48 rounds each; the brain steps toward the copies that won). Coached: a bonus for progress with the hostage (for the defenders: for denying it) counts only in how the copies are ranked, never in the result; every number below counts wins.
-
Weights:
model.safetensors, PyTorch layout;config.jsonhas the game rules it was trained under (game). -
Play with or against it in your browser: https://huggingface.co/spaces/amilliontries/beat-my-ai-cqb ("Rescue it in a home", "Hold a home").
-
Code, as the video used it: https://github.com/backstab319/a-million-tries/tree/episode-13 (
uv run games watch-cqb <brain> camper 100064draws a round). -
Every number below: test homes it never trained in (2 starts x 128 houses), not the ones used to choose this checkpoint.
From the YouTube channel A Million Tries: https://www.youtube.com/@amilliontries