Watch
1
Fork
You've already forked adversarial_foraging
0

suicide ball: doves win the dud regime, hawks win once radius ~ view_dist

333-point sweep on kestrel (~93k seeds): 231 red / 83 blu / 19 undecided.
At view_dist=150 the hawks go from -0.169 (radius 0, pure self-harm) to
+0.237 (radius 250, blast catches the dove nest). The kills_user=false
control wins all 255 points, so the suicide cost is what carves the dove
region out of the grid. Findings in SUICIDE_BALL.md.
This commit is contained in:
OpenCode 2026-11-11 19:02:34 -05:00
commit 9dfe7de244
Signed by: agent
SSH key fingerprint: SHA256:NPIelJoxpgN3F0ie4ZQvsRNNwqXhiAjJFyJ7VWPSqXU

79
SUICIDE_BALL.md Normal file
View file

@ -0,0 +1,79 @@
# Suicide ball: when blowing yourself up favours the hawk
Companion experiment to `HAWK_DOVE.md`. Same hawk–dove setup, but the ball
weapon now **kills the shooter** (`kills_user = true`): every hawk carries
exactly one detonation, centred on itself, that destroys robots (both teams)
and food inside `radius`. Base config: `suicide_ball.toml`.
## The situation
`ball.toml` showed the *normal* ball favouring hawks when the hawks are the
clustered team. Flip both dials at once:
* **doves** start clustered in the nest (the 400×400 box in the food field);
* **hawks** start scattered over the whole field;
* the ball is a **suicide ball** — firing is fatal to the shooter.
A hawk fires the instant it sees a non-kin within `view_dist`. With a suicide
blast centred on the shooter, that creates three regimes:
| regime | what happens | winner |
|--------|--------------|--------|
| `radius ≈ 0` | hawks suicide for zero damage (pure self-harm control) | **dove** |
| `view_dist ≫ radius` | hawks detonate out of range of the dove they spotted | **dove** |
| `radius ≳ view_dist` (moderate) | hawks detonate on top of the dove nest, trading 1 hawk for several doves | **hawk** |
So unlike the normal ball (which favours hawks almost everywhere), the suicide
ball only pays in the window where the blast is *big enough to reach the doves
the hawk saw* — roughly `radius >~ view_dist` — and not so big that the
destroyed food outweighs the doves killed.
## Reproducing
```bash
# on kestrel (12 threads)
python3 tools/sweep.py --base suicide_ball.toml \
--view-dist 25:375:25 --radius 0:400:25 --sigma 3 \
--max-samples 2000 --refine 1 --refine-max-samples 2500 \
--workers 12 --rayon-threads 1 --out sweep_out/suicide/results.jsonl
# control: identical grid, but the ball does not kill the user
python3 tools/sweep.py --base suicide_ball.toml --set kills_user=false ... \
--out sweep_out/free/results.jsonl
python3 tools/plot_phase.py sweep_out/suicide/results.jsonl -o sweep_out/suicide/phase.png
python3 tools/plot_suicide.py sweep_out/suicide/results.jsonl sweep_out/free/results.jsonl \
-o sweep_out/suicide_vs_free.png
```
## Results
Suicide sweep: 333 points, ~93k seeds — **231 red / 83 blu / 19 undecided**.
Free-ball control: 255 points, ~16k seeds — **255 red** (when firing is free,
the scattered hawks win the whole grid).
The phase boundary (`mean_diff = 0`) climbs from radius ≈ 50 at
`view_dist = 100` to ≈ 120 by `view_dist = 375`: the farther a hawk can see,
the farther from the dove nest it detonates, and the bigger the blast must be
to still catch the cluster.
At `view_dist = 150` the weapon's effect on the hawks goes from *harmful* to
*decisive* as the radius grows:
| radius | suicide ball (`kills_user=true`) | free ball (`kills_user=false`) |
|-------:|---------------------------------:|-------------------------------:|
| 0 | **−0.169** (dove) | +0.113 (hawk) |
| 75 | −0.024 (dove) | +0.232 (hawk) |
| 150 | **+0.185** (hawk) | +0.299 (hawk) |
| 250 | **+0.237** (hawk) | +0.237 (hawk) |
Same geometry, same aggression: at radius 0 the hawks *lose* by 17 points of
food share because they keep killing themselves for nothing; give the blast a
radius comparable to the detection range and the same suicide tactic wins the
match. The suicide ball benefits hawks precisely when a hawk's last act
catches the dove cluster — radius between roughly `view_dist` and the point
where food destruction starts to bite (the suicide curves sag again for very
large radii).
Graphs: `sweep_out/suicide/phase.png` (phase diagram) and
`sweep_out/suicide_vs_free.png` (suicide vs free comparison + radius cuts).