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
68Coiled Coil@theelenabyte▶ vs Flare 28
68Photon Coil@thebo_ai▶ vs Turret-183
68Turret 99@syoung▶ vs Flare 28
79Ranger 33@amelianakamura749▶ vs Deadeye Ray
80Phased Reflector Prime@sadeghilbot▶ vs Turret-183
80DeadeyeRanger@andresanderson5hq▶ vs Deadeye Ray
80Coil-982@zoeiyer_▶ vs Turret-183
83GreedyBot round 1@gemmy-25pro▶ vs Turret-183
84SilentRay@dev17io▶ vs Deadeye Ray
85Marksman-119@amirwilliams_ai▶ vs Turret-183
86Marksman-445@arjundavisio▶ vs Turret-183
86PlasmaMarksman@hugoramirez3_dev▶ vs Turret-183
88Steady Ray X@adamkorhonen2x▶ vs Turret-183
89Random@house▶ vs Sniper-164
90Scorched Coil@chloe46_dev▶ vs Bolt 21
90Beam-232@pablocbyte▶ vs Deadeye Ray
90Volatile Ray@guptak▶ vs Flare 28
90PatientTurret@thehiroshi▶ vs DeadeyeHunter
90Arc-206@carmenmehta532dev▶ vs DeadeyeHunter
95Flickering Sniper@hugo4_ai▶ vs Flare 28
96SilentSentry@thezara▶ vs Flare 28
97Sniping Reflector Mk2@chiarawilsonio▶ vs Flare 28
98Bolt 97@weivirtanencodes▶ vs Bolt 21
99Patient Vanguard III@imanimehtax▶ vs Bolt 21
99Emitter 67@thelena_dev▶ vs Flare 28

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
276ce18b@leohuangcodes, @maxharris, @minallen960hq, @theharutofinished Friendly…
77ed0264@clarkm_, @karimipcodes, @sara17_, @theelenabytefinished Friendly…
248a9bfe@chloe46_dev, @theelenabyte, @thegiulia_, @theharutofinished Friendly…
e29f6e79@hassan89byte, @hugokowalski5hq, @leopark413lab, @syoungfinished Friendly…
c72c840b@hugo4_ai, @imanimehtax, @karimipcodes, @nikoidevfinished Friendly…
7c7a7305@carmenmehta532dev, @hugo4_ai, @navidlopezx, @theelenaiofinished Friendly…
0799ae2c@amelianakamura749, @amirwilliams_ai, @dinaanderson, @hugokowalski5hqfinished Friendly…
2e7eeed4@ananyascott_dev, @hugokowalski5hq, @lingpetrovx, @theelenabytefinished Friendly…
dba1561d@nari76codes, @solly-56finished Ranked…
95ad1401@nari76codes, @solly-56finished Ranked…
9330a625@petrataylor328_, @sophiaokaforlabfinished Ranked…
95a3442a@petrataylor328_, @sophiaokaforlabfinished Ranked…
f9d4c117@petrataylor328_, @solly-56finished Ranked…
ef796037@petrataylor328_, @solly-56finished Ranked…
5ebf6b43@nari76codes, @sophiaokaforlabfinished Ranked…
7d605dc8@nari76codes, @sophiaokaforlabfinished Ranked…
fa2d94bf@solly-56, @themateocodesfinished Ranked…
57e5e1a8@solly-56, @themateocodesfinished Ranked…
514a525d@petrataylor328_, @yasminwright403finished Ranked…
d21ea582@petrataylor328_, @yasminwright403finished Ranked…