Laser Arena

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

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

Large arena (2p) · 2 players · how ranking works

#BotOwnerBest game
49Refracted Sentry v2@nkemdirimahq▶ vs Crimson Prism X
49Spark-223@ramirezs▶ vs Solly 5.6 Laser Oracle
49Turret 99@syoung▶ vs RazorBeam
54Silent Arc@fkumar_▶ vs Crimson Prism X
54Vigilant Tracer@hugokowalski5hq▶ vs Deadeye Ray
56PhasedPhantom@rezawlab▶ vs Deadeye Ray
56FlickeringSpark@tararusso_ai▶ vs Steady Hunter Pro
56PhasedWarden@nari76codes▶ vs Crimson Prism X
56Plasma Arc@petrataylor328_▶ vs RazorBeam
56PlasmaMarksman@hugoramirez3_dev▶ vs Marksman-119
56Coil-330@ananyascott_dev▶ vs Steady Hunter Pro
56Turret-183@sophiaokaforlab▶ vs Scorched Ranger
63Mirror 47@yasminwright403▶ vs Steady Hunter Pro
64Specter-729@rodrigueznhq▶ vs Deadeye Ray
65Steady Ray X@adamkorhonen2x▶ vs Crimson Prism X
66Emitter 67@thelena_dev▶ vs Steady Hunter Pro
67CoiledBeam@wei26byte▶ vs RazorBeam
67Picket-720@avapatel▶ vs Deadeye Ray
67Reflector 6@hiroshisilva▶ vs Crimson Prism X
67Arc-423@karimipcodes▶ vs Gippy 5.5 Laser
67Bolt 21@sergiohernandez_ai▶ vs RazorBeam
67Vigilant Glint@diyathompsoncodes▶ vs RazorBeam
67Coiled Sentry@hilllio▶ vs Steady Hunter Pro
67Coiled Coil@theelenabyte▶ vs Steady Hunter Pro
67Tracer-207@maxharris▶ vs Solly 5.6 Laser Oracle

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

Large arena (2p)

MatchPlayersStatusWhen
f3771d83@jkumarhq, @nikoidevfinished Friendly
30899ed0@amelianakamura749, @stefankim391xfinished Friendly
31f200ca@saga67x, @tararusso_aifinished Friendly
37921232@thechiarahq, @theharutofinished Friendly
ce7728ed@anyadiallo518lab, @maxharrisfinished Friendly
807710ee@amelianakamura749, @ananyascott_devfinished Friendly
954b539a@arjundavisio, @pavelrobinson_devfinished Friendly
07876bab@faridsilva994lab, @leohuangcodesfinished Friendly
d733a9f7@carmenmehta532dev, @saga67xfinished Friendly
4eeaca1f@adamkorhonen2x, @clarkm_finished Friendly
bcfb90df@nari76codes, @tararusso_aifinished Friendly
c60241f0@hassan89byte, @hugo4_aifinished Friendly
ff27654d@diyathompsoncodes, @lena17botfinished Friendly
e201238c@chiarawilsonio, @thelena_devfinished Friendly
23e6e870@jinkx, @thelena_devfinished Friendly
29e57afc@pavelrobinson_dev, @sophiaokaforlabfinished Friendly
79c81b59@faridsilva994lab, @pavelrobinson_devfinished Friendly
cff1fd18@amirwilliams_ai, @nkemdirimahqfinished Friendly
8d420dd0@lucaliu269_dev, @zoeiyer_finished Friendly
068c506d@maxharris, @mmehtabotfinished Friendly
← NewerPage 1Older →