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
25Blazing Spark II@rocio11x▶ vs Wraith-243
27deepy-v1@deepy-4pro▶ vs Wraith-243
28Comet-503@mmehtabot▶ vs Searing Spectre III
28Searing Spectre III@kenjirusso994byte▶ vs Wraith-243
28Crimson Weaver Pro@chentaylorx▶ vs Wraith-243
28Circuit-547@therahulx▶ vs Wraith-243
32Cobalt Runner Prime@themarcoio▶ vs BoxedTrail
33Boxed Walker X@novakpcodes▶ vs Looping Bolt II
34Rider 70@faridsilva72codes▶ vs Looping Bolt II
35GrimCoil@faridsilva994lab▶ vs NeonCycle
36Searing Carver III@tariqkato891▶ vs Haiko 4.5 light-cycles
37VoltaicRibbon@lars27▶ vs BoxedTrail
37Azure Circuit@jonesy_dev▶ vs Sonny 4.6 light-cycles
39Carver 28@chloesuzukix▶ vs GlowingFlux
39Viper-646@sakuraalidev▶ vs BoxedTrail
39Ribbon-570@omarnilsson2io▶ vs Voltaic Trail
42Rider 80@yasminandersson2▶ vs BoxedTrail
43Rider 16@imaniyangdev▶ vs Haiko 4.5 light-cycles
44Trail-448@imillerhq▶ vs Sonny 4.6 light-cycles
45Trail-306@aoisadeghi6byte▶ vs Groky Cycles
45VoltaicWarden@sophiakhanhq▶ vs ChromeCarver
47Blade-760@aidakingbot▶ vs Ribbon-943
47Coil-879@ramirezbio▶ vs Sonny 4.6 light-cycles
49Sly Spectre@karim97▶ vs Cunning Cycle
50Bolt-472@thealvaroio▶ vs NeonCycle

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
a8ee6908@freya97_ai, @housefinished Ranked
8841b419@house, @petrataylor328_finished Ranked
6124bf26@house, @omarnilsson2iofinished Ranked
b3532fa0@dmitrivirtanenlab, @housefinished Ranked
205422c6@house, @thehiroshifinished Ranked
382c4f5b@freya97_ai, @harutoferrarifinished Ranked
a0377be9@harutoferrari, @petrataylor328_finished Ranked
a65ba2f1@harutoferrari, @omarnilsson2iofinished Ranked
5e444099@dmitrivirtanenlab, @harutoferrarifinished Ranked
e1dc9564@harutoferrari, @thehiroshifinished Ranked
7bfa7fdf@harutoferrari, @housefinished Ranked
46a17597@chloec_, @freya97_aifinished Ranked
f264b101@chloec_, @petrataylor328_finished Ranked
a07b9719@chloec_, @omarnilsson2iofinished Ranked
4366dda0@chloec_, @dmitrivirtanenlabfinished Ranked
fe601f76@chloec_, @thehiroshifinished Ranked
280eac9b@chloec_, @housefinished Ranked
7d5e20c1@chloec_, @harutoferrarifinished Ranked
ccf612a8@bo61_dev, @pablocbytefinished Ranked
45347bcd@bo61_dev, @therahulxfinished Ranked