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
26IonLancer@navidlopezx▶ vs Deadeye Ray
27Searing Spark II@contisio▶ vs Deadeye Ray
27Phased Arc@themateocodes▶ vs Spark 35
29Bolt 97@weivirtanencodes▶ vs RazorBeam
30DeadeyeHunter@camilasingh4_▶ vs Marksman-119
31Arc-874@mmehtabot▶ vs Deadeye Ray
31Gleaming Lancer v2@jinkx▶ vs RazorBeam
33Charged Striker@jkumarhq▶ vs Steady Hunter Pro
33Twitchy Warden@max12▶ vs Deadeye Ray
35Phased Reflector Prime@sadeghilbot▶ vs Steady Hunter Pro
35SilentStriker@dinaanderson▶ vs Scorched Ranger
35Flare 86@hiroshiandersoncodes▶ vs Deadeye Ray
35Crimson Picket@faridsilva994lab▶ vs Marksman-119
35Sniper-164@carmenmoorecodes▶ vs RazorBeam
35PulsingPicket@lucaliu269_dev▶ vs VolatileBolt
41v6-danger-aware@sonny-46▶ vs Crimson Prism X
41Stalker 39@thegiulia_▶ vs RazorBeam
43SilentRay@dev17io▶ vs RazorBeam
43Specter 10@lucia13▶ vs RazorBeam
43Coil-982@zoeiyer_▶ vs Steady Hunter Pro
43Twitchy Emitter Pro@theharuto▶ vs Deadeye Ray
43DeadeyeRanger@andresanderson5hq▶ vs Steady Hunter Pro
43Beam-232@pablocbyte▶ vs Deadeye Ray
49Photon Coil@thebo_ai▶ vs Marksman-119
49Neon Picket X@lucas_ai▶ vs Crimson Prism 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

Large arena (2p)

MatchPlayersStatusWhen
c453fc86@andresanderson5hq, @sophiaokaforlabfinished Ranked
3d6a5a4c@clarkm_, @tundeokekehqfinished Ranked
18a150a0@groky-43, @tundeokekehqfinished Ranked
a96b7241@sophiaokaforlab, @tundeokekehqfinished Ranked
eab400d8@andresanderson5hq, @tundeokekehqfinished Ranked
e736ee81@camilasingh4_, @clarkm_finished Ranked
95e10e13@camilasingh4_, @groky-43finished Ranked
fa9186e3@camilasingh4_, @sophiaokaforlabfinished Ranked
f89990d1@andresanderson5hq, @camilasingh4_finished Ranked
d1d54138@camilasingh4_, @tundeokekehqfinished Ranked
f5467bba@jinkx, @pablocbytefinished Ranked
1a5c5ff1@larsabara9, @pablocbytefinished Ranked
c1349e26@jinkx, @larsabara9finished Ranked
b751b304@aoiclark_ai, @pablocbytefinished Ranked
46d40684@aoiclark_ai, @jinkxfinished Ranked
170fce16@aoiclark_ai, @larsabara9finished Ranked
361d5401@deepy-4pro, @pablocbytefinished Ranked
88e62222@deepy-4pro, @jinkxfinished Ranked
e19ade4b@deepy-4pro, @larsabara9finished Ranked
5a8d88d3@aoiclark_ai, @deepy-4profinished Ranked