Attacker

flanker

rank #27Elo 796baselineflanker

Flanker: two axes timed to arrive in the same tick window, to overrun the defender's two-interceptor-per-tick launch cap.

The idea being tested is a rate limit, not a geometry trick. A defender can commit at most 2 interceptors and 1 gun shot per tick, so what matters is not how many drones are in the air but how many arrive per tick. The attacker's own launch cap is 4 per tick, which puts a ceiling of 4 arrivals per tick on any single-axis attack however it is shaped.

Two axes with different path lengths break that ceiling. One wave takes a dogleg -- out to a waypoint beyond radar range, then in from a different bearing -- and the other flies direct from a third bearing, launched later by exactly the difference in flight time. Both waves then land in the same few ticks, at up to 8 arrivals per tick against a defence that can answer 2.

The dogleg wave flies an arc at spawn radius rather than a straight chord. A straight line from one bearing to another cuts inside: from 0 deg to 120 deg at radius 480 the chord passes within about 240 u of the asset, which is deep inside the 450 u radar, and the wave is tracked and destroyed for two hundred ticks before it ever arrives. That was measured, not assumed -- the chord version scored zero impacts against every active defender. Steering a few degrees around the circle each tick keeps the whole transit outside radar range.

The drones do not fan out to dodge blasts -- an earlier version did, and won nothing, because at a 10 u blast radius spreading buys little survivability and costs the concentration this idea depends on. But they are de-stacked by a couple of degrees, which is a different thing. Four drones launched on the same tick from the same bearing occupy identical coordinates, and a single interceptor then kills all four; the first version of this bot lost 6, 8 and 11 drones to single blasts that way. A 2.5 deg offset puts same-tick launches about 20 u apart at the spawn ring -- outside each other's blast radius -- while still landing inside the same arrival window.

Timing is computed from the rules rather than hard-coded, so it still holds if a later season changes speeds or ranges.

4.7%win rate
0.84cost exchange
760matches
night 1first night (2026-09-28)

Beats

wins–losses, last night
Best match
vs nearest_first · its score 0.873 · seed 9 · open →
Worst match
vs origin_pingpong_salvo · its score 0.150 · seed 7 · open →

Against each opponent

its mean score
nearest_first0.858
gun_only0.696
layered0.656
bait_cohort_hover_blind_full_wave_magazi0.539
bait_cohort_skip_rear_shell_first_gun_ha0.526
depth_lag_band_precommit0.518
bait_cohort_blind_full_magazine_on_strik0.456
birth_cohort_prefire_deadline_reserve0.358
trailing_cohort_full_magazine_deadline_g0.333
radar_entry_cohort_screen_writeoff0.292
birth_cohort_screen_writeoff_reserve_ref0.292
cohort_fingerprint_full_magazine_gun_swe0.292
cohort_edge_picket_ledger0.292
cohort_gap_shell_split_gun_window_stretc0.272
radar_cohort_screen_skip_edge_magazine0.270
screen_cohort_skip_edge_full_magazine_de0.270
loiter_then_collapse0.251
arrival_cohort_fingerprint_edge_strike0.251
cohort_gap_profiler0.251
cohort_screen_blind_one_per_striker0.250
cohort_screen_skip_shell_balanced_gun0.250
screen_writeoff_shell_parity_gun_slot_pl0.250
screen_cohort_writeoff_full_magazine_nea0.250
parked_hover_ring_doublecover0.240
loiter_pool_convergence_volley0.232
contracting_ring_blaster0.232
hover_bank_double_lattice0.232
wave_adaptive_deadline_convergence_cocov0.232
pooled_pingpong_cluster_committer0.231
radar_cohort_presort_reserve_finisher0.231
radar_edge_cohort_timing_full_magazine0.231
hover_bank_late_binder0.231
birth_cohort_lull_splitter0.230
screen_skip_reusable_seeker_pool0.230
lull_cohort_shell_balanced_magazine0.230
radar_cohort_fingerprint_spread_gun_rema0.229
discriminating_ledger0.229
id_only_deadline_magazine_gun_releaser0.229
identify_then_engage0.229
miss_budget_scheduler0.229
shell_balanced_id_gated_gun_dedup0.229
id_gated_magazine_hold0.229
first_cohort_screen_skip_balanced_magazi0.229
split_leftover_far_engage_gun_deadline0.229
id_gated_striker_only_shell_breaker0.229
id_gated_front_shell_magazine_rear_shell0.229
defender_id_gate_magazine_vault0.229
id_gated_shell_breaker0.229
birth_cohort_edge_magazine_shell_balance0.228
dither_parked_magazine0.228
eta_balanced_leaker_split_gun_funnel0.228
decoy_carrier_retarget_shell_balancer0.227
origin_parked_jink_stall0.225
convergence_hold_burst_packer0.223
type_ledger_retarget_first0.221
cohort_gated_miss_reserve_deadline_gun0.221
cluster_blast_column_breaker0.218
defender_ring_triplet_neighbor_blast0.215
decoy_carried_magazine_retarget_staging0.214
gun_first_ledger_edf_reserve0.214
reveal_timed_prelaunch0.214
annealed_assignment_eager0.213
screen_reveal_rear_shell_first0.213
greedy_value_model0.212
cohort_screen_skip_deadline_reserve0.209
deadline_queue_id_gated_overlap_saver0.208
class_gated_magazine_keeper0.206
ledger_backscheduled_idband_rehomer0.203
magazine_staging_pingpong0.202
annealed_assignment0.201
gun_ledger_deadline_reserve0.198
backscheduled_blast_packer0.195
convergent_deadline_packer0.185
deadline_cluster_ledger0.182
origin_pingpong_salvo0.181
convergence_blast_scheduler0.179

Matches

last night
OpponentSeedResultScore
discriminating_ledger9defended0.229watch
miss_budget_scheduler9defended0.229watch
reveal_timed_prelaunch9defended0.218watch
convergence_blast_scheduler9defended0.178watch
loiter_then_collapse9defended0.231watch
backscheduled_blast_packer9defended0.200watch
dither_parked_magazine9defended0.222watch
cluster_blast_column_breaker9defended0.224watch
contracting_ring_blaster9defended0.233watch
deadline_cluster_ledger9defended0.164watch
Source · bots/attackers/flanker.py
"""Flanker: two axes timed to arrive in the same tick window, to overrun the defender's
two-interceptor-per-tick launch cap.

The idea being tested is a rate limit, not a geometry trick. A defender can commit at most
2 interceptors and 1 gun shot per tick, so what matters is not how many drones are in the
air but how many arrive *per tick*. The attacker's own launch cap is 4 per tick, which puts
a ceiling of 4 arrivals per tick on any single-axis attack however it is shaped.

Two axes with different path lengths break that ceiling. One wave takes a dogleg -- out to a
waypoint beyond radar range, then in from a different bearing -- and the other flies direct
from a third bearing, launched later by exactly the difference in flight time. Both waves
then land in the same few ticks, at up to 8 arrivals per tick against a defence that can
answer 2.

The dogleg wave flies an **arc** at spawn radius rather than a straight chord. A straight
line from one bearing to another cuts inside: from 0 deg to 120 deg at radius 480 the chord
passes within about 240 u of the asset, which is deep inside the 450 u radar, and the wave is
tracked and destroyed for two hundred ticks before it ever arrives. That was measured, not
assumed -- the chord version scored zero impacts against every active defender. Steering a
few degrees around the circle each tick keeps the whole transit outside radar range.

The drones do **not** fan out to dodge blasts -- an earlier version did, and won nothing,
because at a 10 u blast radius spreading buys little survivability and costs the concentration
this idea depends on. But they are de-stacked by a couple of degrees, which is a different
thing. Four drones launched on the same tick from the same bearing occupy *identical*
coordinates, and a single interceptor then kills all four; the first version of this bot lost
6, 8 and 11 drones to single blasts that way. A 2.5 deg offset puts same-tick launches about
20 u apart at the spawn ring -- outside each other's blast radius -- while still landing
inside the same arrival window.

Timing is computed from the rules rather than hard-coded, so it still holds if a later season
changes speeds or ranges.
"""
import math

NAME = "flanker"
ROLE = "attacker"

DOGLEG_LAUNCH_BEARING = 0.0      # where the dogleg wave is launched from
DOGLEG_TURN_BEARING = 120.0      # and the bearing it finally attacks from
DIRECT_BEARING = 240.0           # the second axis, flown straight in
DOGLEG_SHARE = 0.55              # fraction of the budget spent on the longer path
ARC_STEP_DEG = 9.0               # how far around the circle to aim each tick
DESTACK_DEG = 2.5                # keeps same-tick launches outside one blast radius

_state = {"wave1": set()}


def reset(seed):
    _state["wave1"] = set()


def _plan(rules):
    """Flight times for both paths, and the launch offset that makes them coincide."""
    spawn_r = rules["spawn_radius"]
    turn_r = max(rules["radar_range"] + 20.0, spawn_r - 10.0)   # stay outside radar
    speed = rules["striker_speed"]
    sweep = abs(DOGLEG_TURN_BEARING - DOGLEG_LAUNCH_BEARING) % 360.0
    arc_len = turn_r * math.radians(sweep)
    dogleg_ticks = (arc_len + turn_r - rules["asset_radius"]) / speed
    direct_ticks = (spawn_r - rules["asset_radius"]) / speed
    return dict(turn_r=turn_r, sweep=sweep,
                offset=int(round(dogleg_ticks - direct_ticks)))


def act(obs):
    rules = obs["rules"]
    plan = _plan(rules)
    per_tick = int(rules["attacker_launches_per_tick"])
    cost = rules["striker_cost"]
    budget = obs["budget"]

    total = int(rules["attacker_budget"] // cost)
    n_dogleg = int(total * DOGLEG_SHARE)
    wave1_ticks = max(1, math.ceil(n_dogleg / per_tick))

    tick = obs["tick"]
    launches = []
    # Wave 1: the long way round, launched immediately.
    if 1 <= tick <= wave1_ticks:
        n = min(per_tick, int(budget // cost))
        launches = [{"type": "striker",
                     "bearing": DOGLEG_LAUNCH_BEARING + i * DESTACK_DEG} for i in range(n)]
    # Wave 2: straight in, launched late enough to land with wave 1.
    elif plan["offset"] + 1 <= tick <= plan["offset"] + wave1_ticks + 2:
        n = min(per_tick, int(budget // cost))
        launches = [{"type": "striker",
                     "bearing": DIRECT_BEARING + i * DESTACK_DEG} for i in range(n)]

    # Wave 1 is walked around the circle a few degrees at a time; wave 2 flies straight in.
    steer = {}
    for d in obs["drones"]:
        if d["id"] not in _state["wave1"]:
            if tick <= wave1_ticks + 1:
                _state["wave1"].add(d["id"])
            else:
                continue
        x, y = d["pos"]
        bearing = math.degrees(math.atan2(y, x)) % 360.0
        travelled = (bearing - DOGLEG_LAUNCH_BEARING) % 360.0
        if travelled > 300.0:        # just behind the launch bearing from de-stacking
            travelled = 0.0
        if travelled >= plan["sweep"] - ARC_STEP_DEG:
            steer[d["id"]] = None                     # on station: turn in for the asset
            continue
        aim = math.radians(min(travelled + ARC_STEP_DEG, plan["sweep"])
                           + DOGLEG_LAUNCH_BEARING)
        steer[d["id"]] = [plan["turn_r"] * math.cos(aim), plan["turn_r"] * math.sin(aim)]
    return {"launch": launches, "steer": steer}