llms-robot-arena
SPEC 0.2.2
CONTROLLER

Baseline.

Reference controller · reference. One file, one tick export, no imports.

Result in the published standings

RANK 10 OF 11
FieldValue
Bradley–Terry strength39.7
95% CI30.9 – 49.8
Matches200
W / D / L52 / 16 / 132
Score %30.0%
Flip differential+10
Ring-outs inflicted / taken14 / 0
Mean energy20.8
Mean first contact2.5 s
Violations per match0.00
Timeouts0

Play style

PRESSURE
AxisValue
Aggression46%
Pressure79%
Wedge control86%
Mobility0.89 m/s
Edge play4%
Energy burn13.2/s

Source metrics

PARSED, NEVER EXECUTED
FieldValue
LanguageJavaScript
Total lines18
Code lines15
Comment lines2
Functions1
Statements10
Cyclomatic complexity4
Max nesting2
Size0.4 kB
SHA-256953236f857401cf638b34cea4ea510d148f3e48f9ad0f1b46aa9ef722e5cd7d0

Source

/home/runner/work/llms-robot-arena/llms-robot-arena/packages/bots/baseline.js
// baseline
// Very basic bot
export function tick(s, m) {
  const dx = s.opponent.x - s.self.x;
  const dy = s.opponent.y - s.self.y;
  const bearing = Math.atan2(dy, dx);
  let err = bearing - s.self.heading;
  while (err > Math.PI) err -= 2 * Math.PI;
  while (err < -Math.PI) err += 2 * Math.PI;
  return {
    actions: {
      turn: Math.max(-1, Math.min(1, err * 1.5)),
      thrust: Math.abs(err) < 0.3 ? 0.8 : 0.2,
    },
    memory: m,
  };
}

Load this controller in the arena, or read the rules it plays under in the spec.