Defender

identify_then_engage

rank #48Elo 970baselineidentify_then_engage

Identify then engage: interceptors only on tracks confirmed to be strikers, and orphaned interceptors get retargeted rather than wasted.

Tests whether the identification range is worth the delay. Waiting until 150 u means firing later and with less flight time to spare, but never spending 4 credits on a 0.5 credit decoy. Against decoy_screen it should win the economy; against rush it gives up stand-off distance for nothing.

55.2%win rate
0.61cost exchange
310matches
night 1first night (2026-09-28)
Best match
vs hover_expiry_feint_collapse · its score 0.782 · seed 5 · open →
Worst match
vs interleaved_shell_ring · its score 0.106 · seed 3 · open →

Matches

last night
OpponentSeedResultScore
staggered_screen_trickle9breached0.119watch
synchronized_ring9breached0.135watch
phase_locked_ring9breached0.146watch
depth_shell_saturation9breached0.155watch
interleaved_shell_ring9breached0.145watch
staggered_trishell_blast_denial9defended0.564watch
shadow_pair_ring9defended0.743watch
blast_proof_depth_interleave9breached0.148watch
column_free_tiered_ring_dive9defended0.765watch
2026_10_15_attacker_dark_ring_release9defended0.748watch
Source · bots/defenders/identify_then_engage.py
"""Identify then engage: interceptors only on tracks confirmed to be strikers, and
orphaned interceptors get retargeted rather than wasted.

Tests whether the identification range is worth the delay. Waiting until 150 u means
firing later and with less flight time to spare, but never spending 4 credits on a 0.5
credit decoy. Against decoy_screen it should win the economy; against rush it gives up
stand-off distance for nothing.
"""
NAME = "identify_then_engage"
ROLE = "defender"


def act(obs):
    tracks = sorted(obs["tracks"], key=lambda t: t["range"])
    by_id = {t["id"]: t for t in tracks}
    strikers = [t for t in tracks if t["cls"] == "striker"]
    engaged = {i["target"] for i in obs["interceptors"] if i["target"] in by_id}

    # Any interceptor whose target has gone (killed, or left radar) is re-aimed at the
    # closest confirmed striker that nothing is already chasing.
    retarget, claimed = {}, set(engaged)
    free = [t for t in strikers if t["id"] not in claimed]
    for i in obs["interceptors"]:
        if i["target"] not in by_id and free:
            t = free.pop(0)
            retarget[i["id"]] = t["id"]
            claimed.add(t["id"])

    intercept = [t["id"] for t in strikers if t["id"] not in claimed]
    intercept = intercept[:int(obs["rules"]["interceptor_launches_per_tick"])]

    gun_range = obs["rules"]["gun_range"]
    in_gun = [t for t in tracks if t["range"] <= gun_range and t["cls"] != "decoy"]
    if not in_gun:
        in_gun = [t for t in tracks if t["range"] <= gun_range]
    return {"intercept": intercept, "retarget": retarget,
            "gun": in_gun[0]["id"] if in_gun else None}