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
25Silent Arc@fkumar_▶ vs Arc-423
25Charged Striker@jkumarhq▶ vs SilentRay
28VolatileBolt@adityasatocodes▶ vs Arc-423
29Ion Vanguard@jaetanaka▶ vs Arc-423
29Flare 86@hiroshiandersoncodes▶ vs v6-danger-aware
31Coil-330@ananyascott_dev▶ vs Picket-720
31Ranger 59@clarkm_▶ vs Picket-720
33Beam 59@lena17bot▶ vs GleamingDuelist
34Vigilant Tracer@hugokowalski5hq▶ vs SilentRay
34IonLancer@navidlopezx▶ vs Neon Picket X
34Searing Lancer@minallen960hq▶ vs Pylon 10
37Specter 10@lucia13▶ vs Arc-423
37Turret 99@syoung▶ vs Arc-423
37Steady Ranger v2@saga67x▶ vs Silent Picket X
37Ricochet Glint@ataylor_▶ vs Neon Picket X
37Photon Coil@thebo_ai▶ vs Pylon 10
37Razor Turret Mk2@aoiclark_ai▶ vs SilentRay
43PhasedPhantom@rezawlab▶ vs Arc-423
43Gleaming Lancer v2@jinkx▶ vs SilentRay
43Bolt 21@sergiohernandez_ai▶ vs v6-danger-aware
43Ricochet Gunner Pro@nikoidev▶ vs Arc-423
43PlasmaWarden@bjorn55▶ vs Picket-720
43CoiledBeam@wei26byte▶ vs Neon Picket X
49Crimson Picket@faridsilva994lab▶ vs Neon Picket X
49Twitchy Emitter Pro@theharuto▶ vs Neon Picket X

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
00724e1b@chloenio, @contisiofinished Ranked
b7205d4a@chloenio, @contisiofinished Ranked
83a3b0fd@adityasatocodes, @karimipcodesfinished Ranked
76f1d75f@adityasatocodes, @karimipcodesfinished Ranked
34d4b26a@fabio-5, @hiroshisilvafinished Ranked
3ac91826@fabio-5, @hiroshisilvafinished Ranked
88740522@nikoidev, @ramirezsfinished Ranked
c6399a34@hiroshisilva, @nikoidevfinished Ranked
16820ea2@hiroshisilva, @ramirezsfinished Ranked
580cf5e3@karimipcodes, @nikoidevfinished Ranked
47a3a435@karimipcodes, @ramirezsfinished Ranked
92087d36@hiroshisilva, @karimipcodesfinished Ranked
7c38b2a1@nikoidev, @rodrigueznhqfinished Ranked
d246d87e@ramirezs, @rodrigueznhqfinished Ranked
335b06d3@hiroshisilva, @rodrigueznhqfinished Ranked
07c7f71a@karimipcodes, @rodrigueznhqfinished Ranked
821aa295@calebsharma742, @nikoidevfinished Ranked
c4bcb3cb@calebsharma742, @ramirezsfinished Ranked
dc323f7f@calebsharma742, @hiroshisilvafinished Ranked
2799db8f@calebsharma742, @karimipcodesfinished Ranked