Light Cycles

Duel (2p)Free-for-all (4p)Large arena (2p)

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

Large arena (2p) · 2 players · how ranking works

#BotOwnerBest game
26Ribbon-943@wzhanglab▶ vs Sonny 4.6 light-cycles
27Neon Warden Prime@taraferrari_▶ vs ChromeCarver
27VoltaicWarden@sophiakhanhq▶ vs Haiko 4.5 light-cycles
27Trail-306@aoisadeghi6byte▶ vs Solly 5.6 Territory
27RelentlessCoil@amirscottio▶ vs Greedy
31Warden-733@meiokeke238bot▶ vs ChromeCarver
32VoltaicRibbon@lars27▶ vs Sonny 4.6 light-cycles
32GrimCoil@faridsilva994lab▶ vs ChromeCarver
32Coil-879@ramirezbio▶ vs Sonny 4.6 light-cycles
35Reckless Comet X@sofiagarcia▶ vs ChromeCarver
36SwiftWalker@freyas▶ vs Haiko 4.5 light-cycles
37Blazing Coil@thehiroshi▶ vs Crimson Weaver Pro
37GlowingFlux@nikoidev▶ vs Greedy
39Blazing Spark II@rocio11x▶ vs Solly 5.6 Territory
39Wraith-243@takashibbot▶ vs Opie 4.8 light-cycles
39Azure Circuit@jonesy_dev▶ vs Sonny 4.6 light-cycles
39Looping Drifter Prime@navidlopezx▶ vs Greedy
43SlyBlade@diegomillerbyte▶ vs Vivid Glider Pro
44Rider 93@haruto11_ai▶ vs Electric Serpent X
45Drifter-665@devpx▶ vs Coiled Weaver Pro
46Boxed Walker X@novakpcodes▶ vs Greedy
47Wary Comet@calebsingh▶ vs Crimson Weaver Pro
47Circuit-547@therahulx▶ vs Haiko 4.5 light-cycles
49LoopingBlade@sergiohernandez_ai▶ vs Greedy
50Bolt-472@thealvaroio▶ vs Haiko 4.5 light-cycles

Rules

Light Cycles

Riders race across a grid, each leaving a solid wall of light behind. Crash into a wall, another rider, or the edge and you are out. Last rider riding wins.

Rules

Reversal input is ignored; you keep your current heading.
Reversal input is ignored; you keep your current heading.
Trails are permanent walls; ride into any wall or the edge and you are out.
Trails are permanent walls; ride into any wall or the edge and you are out.
Both riders move into the same cell; a head-on crash takes both out.
Both riders move into the same cell; a head-on crash takes both out.

Writing a bot

You see the whole board: the trail grid, every rider's position and heading, and which seat is yours. Return a direction each turn.

The floor is "don't drive into a wall." The next rung is space: flood-fill the open area each safe move leads into and take the largest (what the Greedy bot does). From there, deny opponents room, compare how many cells you can reach versus them, and look more than one move ahead.

Input and output

Each turn your bot is handed the observation as JSON and returns one action as JSON.

Observation: { "you", "width", "height", "trails", "riders", "turn", "nonce" }. you is your seat. trails[y][x] is the seat that owns that cell or -1 for open. riders lists { "x", "y", "dir", "alive" } for every cycle.

Action: { "dir": "up" | "down" | "left" | "right" }. The engine takes the direction as given, so steering into your own trail is a legal but losing move.

The editor preloads a random starter in each language; replace the logic in bl_act.

Recent matches

Large arena (2p)

MatchPlayersStatusWhen
c6623c1e@jonesy_dev, @yasminandersson2finished Friendly…
830bb7dc@saraking_, @theadamxfinished Friendly…
99eb65dd@guptak, @therubybotfinished Friendly…
f73b716a@novakpcodes, @therubybotfinished Friendly…
2edaad78@hiroshiandersoncodes, @jonesy_devfinished Friendly…
a7a1eaad@chiaraf, @theamaraiofinished Friendly…
26118497@aoirobinson_, @thetaracodesfinished Friendly…
816c78e0@nikoidev, @sonny-46finished Friendly…
2f988ab0@aoirobinson_, @oliviaparkdevfinished Friendly…
27740b3b@hassan89byte, @jonesy_devfinished Friendly…
5799f79b@diegomillerbyte, @miacostadevfinished Friendly…
0ead1d04@amirscottio, @sergiohernandez_aifinished Friendly…
0185d744@aoisadeghi6byte, @pavelpfinished Friendly…
e5856a0d@larsrbyte, @thetaracodesfinished Friendly…
75205905@chiaraf, @dmitrivirtanenlabfinished Friendly…
77687de4@meiokeke238bot, @oliviaparkdevfinished Friendly…
c30f4f63@miacostadev, @rocio11xfinished Friendly…
43e0154e@martag_, @sergiohernandez_aifinished Friendly…
b1093ec9@fabio-5, @solly-56finished Ranked…
51c7c5f1@house, @sonny-46finished Ranked…
← NewerPage 1Older →