/* ===================================================================== BOARD BATTLE — Sport on Earth Games arcade Single-file canvas game in the Family Arcade house style. EMBED (inline):
CONTROLS: drag under the rim, or move with ◀ ▶ / A D, to position your rebounder. Tap the court, tap JUMP, or press Space to jump. RULES: twenty shots (or 90 seconds, whichever ends first) come off the rim at random angles. The bounce spot lights up as the ball leaves the rim — get there first, box out whichever opponent is chasing it (stand between him and the spot and he stops cold), then time your jump so you are at your peak as the ball arrives. SCORING: clean board +3 • contested board (an opponent within arm's reach) +5 • a live streak adds +1 per board on the streak (3rd straight board pays +2 extra, 4th pays +3…). An opponent board resets the streak. Your rebounder and both opponents are real club big men (PF/C starters from the Sleeper snapshot: data/sleeper-rosters.json + data/sleeper-players.json); if the snapshot cannot load, generic bigs step in and the game still runs. ===================================================================== */ (function () { "use strict"; /* ================= LEADERBOARD BACKEND — UPGRADE HOOK ================= Default: LOCAL board (localStorage top-10) so the game runs standalone. To switch to the shared family KV leaderboard later, set KV_ENABLED to true. The site must then serve the paper's functions/api/arcade.js with "board-battle" added to its GAMES list and ARCADE_KV bound — the fetch calls below already mirror that API exactly: GET /api/arcade/leaderboard?game=