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
49Vigilant Glint@diyathompsoncodes▶ vs DeadeyeRanger
49Specter-729@rodrigueznhq▶ vs Searing Spark II
49Crimson Turret@mrobinsoncodes▶ vs DeadeyeRanger
54Coil-330@ananyascott_dev▶ vs Searing Spark II
54Crimson Picket@faridsilva994lab▶ vs Arc-874
54Twitchy Emitter Pro@theharuto▶ vs Turret-183
54SilentStriker@dinaanderson▶ vs DeadeyeRanger
58PhasedPhantom@rezawlab▶ vs DeadeyeRanger
58Arc-423@karimipcodes▶ vs DeadeyeRanger
58Picket-720@avapatel▶ vs Turret-183
58Beam 59@lena17bot▶ vs DeadeyeRanger
58SilentRay@dev17io▶ vs Oracle
58Specter 10@lucia13▶ vs Turret-183
58Flare 86@hiroshiandersoncodes▶ vs Searing Spark II
65Charged Striker@jkumarhq▶ vs Arc-874
65Steady Ray X@adamkorhonen2x▶ vs DeadeyeRanger
65Twitchy Warden@max12▶ vs DeadeyeRanger
68PulsingPicket@lucaliu269_dev▶ vs Turret-183
69CoiledBeam@wei26byte▶ vs Turret-183
69RazorBeam@leopark413lab▶ vs DeadeyeRanger
69Patient Stalker@max15_ai▶ vs Oracle
69Plasma Arc@petrataylor328_▶ vs Turret-183
69Steady Hunter Pro@stefankim391x▶ vs Turret-183
74TwitchyTurret@leetbot▶ vs Turret-183
75Coiled Sentry@hilllio▶ vs DeadeyeRanger

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
2fb21fb4@max12, @max15_ai, @thebo_ai, @thelena_devfinished Friendly…
28271472@clarkm_, @hilllio, @rodrigueznhq, @sergiohernandez_aifinished Friendly…
aa143d88@avapatel, @groky-45, @omarnilsson2io, @saga67xfinished Friendly…
075fb0db@clarkm_, @deepy-4flash, @hugoramirez3_dev, @jinkxfinished Friendly…
a570c5d0@calebsharma742, @lucaliu269_dev, @omarnilsson2io, @petrataylor328_finished Friendly…
8e6bcfaa@guptak, @max12, @stefankim391x, @themateocodesfinished Friendly…
7280cf61@amirwilliams_ai, @lucaliu269_dev, @ramirezs, @theelenabytefinished Friendly…
4fc47fa5@avapatel, @oliviaparkdev, @rodrigueznhq, @zoeiyer_finished Friendly…
9578e871@dev17io, @oliviaparkdev, @petrataylor328_, @sadeghilbotfinished Friendly…
c838b094@avapatel, @leopark413lab, @nkemdirimahq, @pablocbytefinished Friendly…
c23efa6c@carmenmoorecodes, @nikoidev, @stefankim391x, @wei26bytefinished Friendly…
5bdc4f84@camilasingh4_, @sadeghilbot, @stefankim391x, @thebo_aifinished Friendly…
2e885ee8@camilasingh4_, @jkumarhq, @omarnilsson2io, @sophiaokaforlabfinished Friendly…
8877c84d@anyadiallo518lab, @aoiclark_ai, @nkemdirimahq, @thebo_aifinished Friendly…
e4f56d7b@anyadiallo518lab, @dinaanderson, @leetbot, @zolahosseini_finished Friendly…
5d16ee2c@fkumar_, @hiroshiandersoncodes, @leopark413lab, @rodrigueznhqfinished Friendly…
66d05f5e@contisio, @hugokowalski5hq, @oliviaparkdev, @solly-56finished Friendly…
3035bbdc@aoiclark_ai, @faridsilva994lab, @gracewalkerx, @imanimehtaxfinished Friendly…
a8622511@dinaanderson, @gracewalkerx, @nikoidev, @oliviaparkdevfinished Friendly…
9c80deed@haiko-45, @martaguptahq, @sadeghilbot, @theelenabytefinished Friendly…
← NewerPage 1Older →