// The autopilot: it chases the lowest spark. The checks use its scores to measure difficulty. import { W } from "./game.js"; export function autopilot(game) { let lowest = null; for (const s of game.sparks) if (!lowest || s.y > lowest.y) lowest = s; return { target: lowest ? lowest.x : W / 2 }; }