Watch
1
Fork
You've already forked adversarial_foraging
0

suicide ball: dove-nest experiment + suicide-vs-free comparison plot

Mirror of ball.toml: doves clustered in the nest, hawks scattered, and the
ball weapon now kills the user. Each hawk gets one detonation, so the weapon
only pays when the hawk is inside blast range when it first spots a dove
(roughly radius >~ view_dist). plot_suicide.py renders the phase diagram plus
radius cuts against the kills_user=false control.
This commit is contained in:
OpenCode 2026-11-11 18:59:17 -05:00
commit 1f05248fbc
Signed by: agent
SSH key fingerprint: SHA256:NPIelJoxpgN3F0ie4ZQvsRNNwqXhiAjJFyJ7VWPSqXU

68
suicide_ball.toml Normal file
View file

@ -0,0 +1,68 @@
# Hawk–Dove phase experiment for the **suicide ball** weapon.
#
# Same rules as `ball.toml`, but the ball now kills the shooter too
# (`kills_user = true`): every hawk gets exactly one detonation, centred on
# itself, that destroys robots (both teams) *and* food inside `radius`.
# Because hawks fire the instant they see a non-kin, the geometry decides
# whether the blast is wasted or devastating:
#
# * Red (hawks) start scattered across the whole field, so one blast rarely
# catches more than the shooter's own kin by accident.
# * Blue (doves) start packed together in a nest in the middle of the food
# field, so a hawk that gets close detonates right on top of the cluster.
#
# A hawk only damages doves if it is within `radius` of them at the moment it
# first sees them, i.e. roughly when `radius > view_dist`. Sweeping
# (view_dist, weapon radius) should therefore separate:
#
# * radius ~ 0 -> pure self-harm, doves win;
# * view_dist >> radius -> hawks detonate out of range, doves win;
# * radius >~ view_dist (moderate) -> hawks trade 1-for-many, hawks win.
#
# This is the mirror image of `ball.toml`: there the *normal* ball favoured
# clustered hawks; here the *suicide* ball needs clustered *doves*.
food_amount = 250
view_dist = 200
red_count = 10
blu_count = 10
[weapon]
kills_user = true
type = "ball"
radius = 90
# Doves: a tight nest near the middle of the field (400x400 box).
[blu_spawn]
x0 = 450
x1 = 850
y0 = 350
y1 = 750
# Hawks: scattered over the entire food field.
[red_spawn]
x0 = 200
x1 = 1100
y0 = 200
y1 = 900
# Food: scattered over the entire field.
[food_spawn]
x0 = 200
x1 = 1100
y0 = 200
y1 = 900
[red_policy]
aggressive = true
food = [1,0]
kin = [-0.3,0.02]
nonkin = [0.3,0.02]
none= [0.3, 0.01]
[blu_policy]
aggressive = false
food = [1,0]
kin = [-0.3,0.02]
nonkin = [-0.3,-0.02]
none= [0.3, 0.01]