CQB: the episode 13 defenders (holding a home)
From episode 13 of A Million Tries ("My AI Kept Shooting the Hostage"). Episode 12's defenders (d23), trained 300 more generations in homes against the attackers of the time (coached, as before, against the hostage getting out, with a small bonus for aim). Honestly: the training didn't make them better. Under the same rules they hold about as well as the brain they started from, and a hand-written camper pair holds better. They are the defenders the video and the browser game use. It sees the 160 numbers of the game below.
| defence (2 vs 2 in a home, the hostage can be hit) | vs the final attackers (e17): attackers win | hostage out | vs the first home attackers (e15): attackers win |
|---|---|---|---|
| this brain | 62% | 44% | 59% |
| episode 12's defenders (d23), never trained in homes | 59% | 41% | 59% |
| a hand-written camper pair | 54% | 41% | 52% |
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