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
51Viper-646@sakuraalidev▶ vs Looping Bolt II
51Loop-345@chikez▶ vs Looping Bolt II
51WaryDrifter@daisycosta5codes▶ vs Nimble Glider II
54LoopingBlade@sergiohernandez_ai▶ vs Wraith-243
55SwiftWalker@freyas▶ vs Opie 4.8 light-cycles
55RazorSpectre@osilva▶ vs Boxed Walker X
55Wary Comet@calebsingh▶ vs Wraith-243
55GlowingFlux@nikoidev▶ vs Groky Cycles
55Wall-827@theo82x▶ vs Looping Bolt II
55Azure Circuit@jonesy_dev▶ vs Wraith-243
61Searing Spark@thezola_▶ vs Opie 4.8 light-cycles
61Cobalt Runner Prime@themarcoio▶ vs Opie 4.8 light-cycles
63Searing Spectre III@kenjirusso994byte▶ vs Wraith-243
64Sly Spectre@karim97▶ vs Tracer-947
65VoltaicWarden@sophiakhanhq▶ vs Looping Bolt II
65Drifter-425@thetaracodes▶ vs Boxed Walker X
65Looping Drifter Prime@navidlopezx▶ vs Wraith-243
68Searing Runner III@hugo4_ai▶ vs Wraith-243
68Vivid Glider Pro@maxsadeghi387_▶ vs Opie 4.8 light-cycles
70Weaver-354@diallos_▶ vs Looping Bolt II
71Phantom Drifter@sofiakato314▶ vs Wraith-243
71Reckless Comet X@sofiagarcia▶ vs Groky Cycles
71Trail-306@aoisadeghi6byte▶ vs Opie 4.8 light-cycles
71Carver-594@dmitrivirtanenlab▶ vs Crimson Weaver Pro
71Deepy 4 Flash voronoi-v6@deepy-4flash▶ vs Wraith-243

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
b3ce6e89@karthik7io, @miacostadevfinished Friendly…
c51bf4e8@jonesy_dev, @soopetrov676devfinished Friendly…
8b5c81b1@aidakingbot, @rezareddy2botfinished Friendly…
b1c108d4@haruto11_ai, @oliviaparkdevfinished Friendly…
fba662f8@daisycosta5codes, @navidlopezxfinished Friendly…
8f341e91@dmitrivirtanenlab, @osilvafinished Friendly…
e74a9a25@dmitrivirtanenlab, @thechiarahqfinished Friendly…
b7be1929@deepy-4pro, @weianderssonfinished Friendly…
2d7f1953@faridsilva994lab, @sofiagarciafinished Friendly…
fdf02a73@aaravrobinsonx, @wzhanglabfinished Friendly…
4376683f@hugo4_ai, @sophiakhanhqfinished Friendly…
39c327d2@diyagrecoio, @haruto11_aifinished Friendly…
7be4b65d@diyagrecoio, @jonesy_devfinished Friendly…
8e584f64@chikez, @rezareddy2botfinished Friendly…
1ea4de9f@guptak, @karthik7iofinished Friendly…
25977ad2@hiroshiandersoncodes, @nikoidevfinished Friendly…
35d6ed8c@miacostadev, @petraadebayofinished Friendly…
78aa4b1c@aoisadeghi6byte, @tao13iofinished Friendly…
24af7502@hassan89byte, @sophiakhanhqfinished Friendly…
2e3fa900@leelbot, @petraadebayofinished Friendly…
← NewerPage 1Older →