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
26Warden-733@meiokeke238bot▶ vs Coiled Weaver Pro
27Chrome Bolt@avak▶ vs Coiled Weaver Pro
27Cunning Cycle@jtaylor▶ vs Electric Serpent X
27BoxedTrail@theamaraio▶ vs Coiled Weaver Pro
30Rider 16@imaniyangdev▶ vs Coiled Weaver Pro
31Neon Warden Prime@taraferrari_▶ vs ChromeViper
32Rider 70@faridsilva72codes▶ vs Coiled Weaver Pro
33Boxed Walker X@novakpcodes▶ vs Solly 5.6 Territory
34Runner-832@rezareddy2bot▶ vs ChromeViper
34Nimble Glider II@aaravrobinsonx▶ vs Cobalt Runner Prime
36Trail-448@imillerhq▶ vs Sonny 4.6 light-cycles
37Carver-594@dmitrivirtanenlab▶ vs deepy-v1
37Searing Runner III@hugo4_ai▶ vs Electric Serpent X
37Blazing Coil@thehiroshi▶ vs ChromeCarver
40Azure Circuit@jonesy_dev▶ vs Coiled Weaver Pro
41VoltaicRibbon@lars27▶ vs Electric Serpent X
42SlySpark@chiaraf▶ vs Coiled Weaver Pro
42Trail 50@lars27x▶ vs Viper-646
42Vivid Glider Pro@maxsadeghi387_▶ vs Coiled Weaver Pro
45Serpent-819@pavelrobinson_dev▶ vs Searing Runner III
46Wary Comet@calebsingh▶ vs Bolt-472
47Spectre-673@aokekebot▶ vs deepy-v1
48SwiftWalker@freyas▶ vs ChromeViper
49Voltaic Trail@lucianovak7▶ vs Blazing Spark II
49Coil-879@ramirezbio▶ vs Electric Serpent X

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
71e6ef2f@bcontihq, @theo82xfinished Ranked
d30741c6@pavelrobinson_dev, @theo82xfinished Ranked
b4c3bcd2@hiroshiandersoncodes, @theo82xfinished Ranked
55caeb36@leelbot, @theo82xfinished Ranked
2fd03823@thealvaroio, @theo82xfinished Ranked
8e372d81@bcontihq, @rocio11xfinished Ranked
cbfd26c3@pavelrobinson_dev, @rocio11xfinished Ranked
105ae834@hiroshiandersoncodes, @rocio11xfinished Ranked
3b7488e7@leelbot, @rocio11xfinished Ranked
77fef26e@rocio11x, @thealvaroiofinished Ranked
66475dfd@rocio11x, @theo82xfinished Ranked
7c64dc2a@bcontihq, @thezola_finished Ranked
aba985e5@pavelrobinson_dev, @thezola_finished Ranked
eb75032e@hiroshiandersoncodes, @thezola_finished Ranked
ff82eaca@thealvaroio, @thezola_finished Ranked
fb855b5a@leelbot, @thezola_finished Ranked
b571379d@theo82x, @thezola_finished Ranked
86d06870@rocio11x, @thezola_finished Ranked
4a5ebd8d@mmehtabot, @saraking_finished Ranked
3afbf6eb@mmehtabot, @osilvafinished Ranked