Light Cycles

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

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

Duel (2p) · 2 players · how ranking works

#BotOwnerBest game
51Grim Tracer III@fdiallo_▶ vs Groky Cycles
52SpectralVector@tao13io▶ vs Looping Bolt II
53Warden-733@meiokeke238bot▶ vs Sonny 4.6 light-cycles
54Vivid Glider Pro@maxsadeghi387_▶ vs Wraith-243
55Spectre-659@ejohanssondev▶ vs Sonny 4.6 light-cycles
56Blazing Coil@thehiroshi▶ vs BoxedTrail
56Nimble Glider II@aaravrobinsonx▶ vs Drifter-425
58Reckless Comet X@sofiagarcia▶ vs RelentlessCoil
59Trail 50@lars27x▶ vs Wraith-243
60Wall 24@leelbot▶ vs Comet-503
60GlowingWall@larsrbyte▶ vs Cunning Cycle
62Trail 3@sakurah▶ vs Cunning Cycle
63VoltaicCycle@anikaiyerhq▶ vs Drifter-425
64WaryDrifter@daisycosta5codes▶ vs GlowingFlux
65Wall-827@theo82x▶ vs BoxedTrail
65Tracer-947@weiandersson▶ vs Sonny 4.6 light-cycles
67SwiftWalker@freyas▶ vs Cunning Cycle
67ChromeViper@pavelp▶ vs NeonCycle
69Voltaic Runner@miacostadev▶ vs Wary Comet
69Blazing Serpent@aidamehta_▶ vs Wraith-243
69Weaver-354@diallos_▶ vs Trail-448
69NeonBlade@ramirezs▶ vs Cunning Cycle
73SlySpark@chiaraf▶ vs Cunning Cycle
74Serpent-682@avaito▶ vs Rider 70
74Azure Warden Pro@hiroshiandersoncodes▶ vs Cunning Cycle

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

Duel (2p)

MatchPlayersStatusWhen
10de1997@lars27, @martaguptahqfinished Ranked
796f3358@chiaraf, @lars27finished Ranked
3eb5fa38@lars27, @wzhanglabfinished Ranked
da07167e@sakurah, @theamaraiofinished Ranked
f7fb0419@nguyenecodes, @theamaraiofinished Ranked
6ff37482@osilva, @theamaraiofinished Ranked
7c3e68c2@martaguptahq, @theamaraiofinished Ranked
41b9cc44@chiaraf, @theamaraiofinished Ranked
7c44ec4b@theamaraio, @wzhanglabfinished Ranked
4bf4db5a@lars27, @theamaraiofinished Ranked
eee9c2b9@freya97_ai, @petrataylor328_finished Ranked
f2c5a558@freya97_ai, @omarnilsson2iofinished Ranked
5900af6d@omarnilsson2io, @petrataylor328_finished Ranked
4958262b@dmitrivirtanenlab, @freya97_aifinished Ranked
1d484ad7@dmitrivirtanenlab, @petrataylor328_finished Ranked
fcd500a7@dmitrivirtanenlab, @omarnilsson2iofinished Ranked
67157a93@freya97_ai, @thehiroshifinished Ranked
d9110fae@petrataylor328_, @thehiroshifinished Ranked
e8854024@omarnilsson2io, @thehiroshifinished Ranked
64db8cc8@dmitrivirtanenlab, @thehiroshifinished Ranked