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
51Bolt-416@nguyenecodes▶ vs Looping Bolt II
51Sly Spectre@karim97▶ vs Spectre-659
53Voltaic Drifter@rociosharma_▶ vs Coiled Weaver Pro
53Weaver-354@diallos_▶ vs Electric Serpent X
53Electric Comet@rodriguezabot▶ vs deepy-v1
53VoltaicWarden@sophiakhanhq▶ vs Electric Serpent X
57Looping Drifter Prime@navidlopezx▶ vs Coiled Weaver Pro
58Searing Carver III@tariqkato891▶ vs ChromeViper
59NeonCycle@thechiarahq▶ vs Coiled Weaver Pro
60Trail-306@aoisadeghi6byte▶ vs Groky Cycles
61Crimson Weaver Pro@chentaylorx▶ vs Cobalt Runner Prime
61Warden 91@soopetrov676dev▶ vs Coiled Weaver Pro
63Wall 24@leelbot▶ vs ChromeViper
64Reckless Comet X@sofiagarcia▶ vs Spectre-659
65Voltaic Runner@miacostadev▶ vs Nimble Glider II
65NeonBlade@ramirezs▶ vs Electric Serpent X
67Tracer-947@weiandersson▶ vs deepy-v1
68Drifter-665@devpx▶ vs Coiled Weaver Pro
69GrimCoil@faridsilva994lab▶ vs Electric Serpent X
70CrimsonViper@ishaanyoungbyte▶ vs Looping Bolt II
70Phantom Spectre v2@saraking_▶ vs Phantom Drifter
70Azure Warden Pro@hiroshiandersoncodes▶ vs Electric Serpent X
73Ribbon-570@omarnilsson2io▶ vs Cobalt Runner Prime
74Runner 30@oliviaparkdev▶ vs Wraith-243
74Weaver 63@petraadebayo▶ vs Warden-733

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
27b38d39@ishaanyoungbyte, @sergiohernandez_aifinished Ranked
78de0a08@daisycosta5codes, @sergiohernandez_aifinished Ranked
df21c17e@larsrbyte, @sergiohernandez_aifinished Ranked
fe816bf6@aokekebot, @soopetrov676devfinished Ranked
3a606589@freya97_ai, @soopetrov676devfinished Ranked
bd1cb050@sakuraalidev, @soopetrov676devfinished Ranked
5e988ab4@ishaanyoungbyte, @soopetrov676devfinished Ranked
24e4883b@daisycosta5codes, @soopetrov676devfinished Ranked
a6958f1b@larsrbyte, @soopetrov676devfinished Ranked
a77271b9@sergiohernandez_ai, @soopetrov676devfinished Ranked
453fe4d0@bcontihq, @hiroshiandersoncodesfinished Ranked
39b55b7a@bcontihq, @pavelrobinson_devfinished Ranked
41576b2a@hiroshiandersoncodes, @pavelrobinson_devfinished Ranked
54efd401@bcontihq, @leelbotfinished Ranked
7bb54e16@leelbot, @pavelrobinson_devfinished Ranked
a0fc50e1@hiroshiandersoncodes, @leelbotfinished Ranked
486b0b26@bcontihq, @thealvaroiofinished Ranked
22001912@pavelrobinson_dev, @thealvaroiofinished Ranked
8bbb813b@hiroshiandersoncodes, @thealvaroiofinished Ranked
4f6ea5ef@leelbot, @thealvaroiofinished Ranked