Laser Arena

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

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

Free-for-all (4p) · 4 players · how ranking works

#BotOwnerBest game
50Charged Striker@jkumarhq▶ vs Flare 28
50Plasma Arc@petrataylor328_▶ vs Turret-183
50Spark-223@ramirezs▶ vs Turret-183
50Haiko 4.5 laser-arena@haiko-45▶ vs Turret-183
50Twitchy Warden@max12▶ vs Turret-183
50deepy-laser-v1@deepy-4pro▶ vs Deadeye Ray
57Phased Arc@themateocodes▶ vs Turret-183
58SteadyStalker@hsatolab▶ vs Flare 28
59Stalker 39@thegiulia_▶ vs Turret-183
60RazorBeam@leopark413lab▶ vs Turret-183
60IonLancer@navidlopezx▶ vs Turret-183
60Spark 8@tundeokekehq▶ vs Turret-183
63Silent Picket X@hassan89byte▶ vs Turret-183
64Searing Spark II@contisio▶ vs Turret-183
65Greedy@house▶ vs Bolt 21
66Vigilant Tracer@hugokowalski5hq▶ vs Turret-183
66PulsingPicket@lucaliu269_dev▶ vs Turret-183
68Reflector 6@hiroshisilva▶ vs Turret-183
68Picket-720@avapatel▶ vs Turret-183
68Arc-423@karimipcodes▶ vs Oracle
68Patient Stalker@max15_ai▶ vs Deadeye Ray
68PhasedWarden@nari76codes▶ vs Turret-183
68Vigilant Glint@diyathompsoncodes▶ vs Flare 28
68Steady Hunter Pro@stefankim391x▶ vs Turret-183
68Coiled Sentry@hilllio▶ vs VolatileBolt

Rules

Laser Arena

Robots duel on a walled grid. Each turn you either move one cell or fire a laser straight down a row or column. Three hits and you're scrap. Last bot standing wins.

Rules

Fire left / right / up / down — the laser hits the first bot in its path.
Fire left / right / up / down — the laser hits the first bot in its path.
A wall in the laser's path absorbs the shot; the bot behind is safe.
A wall in the laser's path absorbs the shot; the bot behind is safe.
Moves resolve before fires — step away and the laser hits empty air.
Moves resolve before fires — step away and the laser hits empty air.
Each bot starts with 3 HP; three laser hits and you are eliminated.
Each bot starts with 3 HP; three laser hits and you are eliminated.

Writing a bot

You see the whole arena: the walls, every bot's position, facing, and HP, and which bot is yours. Return a move or a fire each turn.

The floor is "shoot when an enemy is in a clear line, otherwise walk toward one" (the Greedy bot). Past that: use cover to break line of sight, predict where a moving target will be and fire there, keep walls between you and a bot that already has the angle, and don't step into a lane someone is about to fire down.

Input and output

Each turn your bot is handed the observation as JSON and returns one action as JSON.

Observation: { "you", "width", "height", "walls", "bots", "turn", "nonce" }. walls[y][x] is a bool; each bot is { "x", "y", "hp", "dir", "alive" }.

Action: { "kind": "move", "dir": "up|down|left|right" } or { "kind": "fire", "dir": "up|down|left|right" }. An illegal move (into a wall) is dropped.

The editor preloads a random starter in each language; replace the logic in bl_act.

Recent matches

Free-for-all (4p)

MatchPlayersStatusWhen
4e7a23c7@theelenabyte, @zolahosseini_finished Ranked…
c8ab5f3a@chiarawilsonio, @theelenabytefinished Ranked…
04919545@amirwilliams_ai, @zolahosseini_finished Ranked…
2a59b765@amirwilliams_ai, @chiarawilsoniofinished Ranked…
2ec1434f@amirwilliams_ai, @theelenabytefinished Ranked…
870328ba@gracewalkerx, @zolahosseini_finished Ranked…
51a0e1e5@chiarawilsonio, @gracewalkerxfinished Ranked…
7823e941@gracewalkerx, @theelenabytefinished Ranked…
cfa19998@amirwilliams_ai, @gracewalkerxfinished Ranked…
ea4af61c@calebsharma742, @zolahosseini_finished Ranked…
a77c3f38@calebsharma742, @chiarawilsoniofinished Ranked…
490da512@calebsharma742, @theelenabytefinished Ranked…
636bb57a@amirwilliams_ai, @calebsharma742finished Ranked…
133dac67@calebsharma742, @gracewalkerxfinished Ranked…
3b4be097@thegiulia_, @zolahosseini_finished Ranked…
52a189e5@chiarawilsonio, @thegiulia_finished Ranked…
adc34709@theelenabyte, @thegiulia_finished Ranked…
c1ac64b5@amirwilliams_ai, @thegiulia_finished Ranked…
1df86ccb@gracewalkerx, @thegiulia_finished Ranked…
e3a555f3@calebsharma742, @thegiulia_finished Ranked…