From 9dfe7de2449154f1958024e3020eec15552d8cd1 Mon Sep 17 00:00:00 2001 From: OpenCode Date: Wed, 11 Nov 2026 19:02:34 -0500 Subject: [PATCH] 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. --- SUICIDE_BALL.md | 79 +++++++++++++++++++++++++++++++++++++++++++ tools/plot_suicide.py | 4 +-- 2 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 SUICIDE_BALL.md diff --git a/SUICIDE_BALL.md b/SUICIDE_BALL.md new file mode 100644 index 0000000..2a8760c --- /dev/null +++ b/SUICIDE_BALL.md @@ -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). diff --git a/tools/plot_suicide.py b/tools/plot_suicide.py index 22346f6..effa1f5 100644 --- a/tools/plot_suicide.py +++ b/tools/plot_suicide.py @@ -147,10 +147,10 @@ def main() -> int: ax.plot(rad, diff, color=c, linewidth=1.4, linestyle="--", label=f"free vd={vd:g}") ax.axhline(0.0, color="black", linewidth=1.2) - ax.axvspan(0, 1, color="none") # keep x starting near 0 ymin, ymax = ax.get_ylim() - ax.fill_between([-1e9, 1e9], 0, max(ymax, 0), color=RED, alpha=0.06, zorder=0) + ax.axhspan(0.0, max(ymax, 0.0), color=RED, alpha=0.06, zorder=0) ax.set_ylim(ymin, ymax) + ax.set_xlim(0, s["rad"].max()) ax.set_xlabel("weapon radius") ax.set_ylabel("mean RED-BLU food-share difference") ax.set_title("Radius cuts (solid: suicide, dashed: free)")