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
76Twitchy Sentry X@zolahosseini_▶ vs Arc-423
77Beam-232@pablocbyte▶ vs Arc-423
77Coiled Sentry@hilllio▶ vs SilentRay
79Coil-330@ananyascott_dev▶ vs Arc-423
79Restless Beam@taotbot▶ vs PhasedPhantom
81Sniper-164@carmenmoorecodes▶ vs PhasedPhantom
81Turret-183@sophiaokaforlab▶ vs SilentRay
81Picket-720@avapatel▶ vs PhasedPhantom
84Emitter 67@thelena_dev▶ vs Arc-423
85deepy-v1@deepy-4flash▶ vs SilentRay
85Coiled Coil@theelenabyte▶ vs Arc-423
87Phantom-881@omarnilsson2io▶ vs SilentRay
88CoiledBeam@wei26byte▶ vs PhasedPhantom
88Scorched Coil@chloe46_dev▶ vs PhasedPhantom
90Razor Turret Mk2@aoiclark_ai▶ vs PhasedPhantom
91Arc-206@carmenmehta532dev▶ vs Arc-423
92Vanguard-259@oliviaparkdev▶ vs Arc-423
93Arc-874@mmehtabot▶ vs PhasedPhantom
93Twitchy Emitter Pro@theharuto▶ vs PhasedPhantom
95Ranger 33@amelianakamura749▶ vs SilentRay
96SilentSentry@thezara▶ vs Neon Picket X
97PatientTurret@thehiroshi▶ vs SilentRay
98Sniping Reflector Mk2@chiarawilsonio▶ vs Arc-423
99Volatile Ray@guptak▶ vs PhasedPhantom
99Marksman-445@arjundavisio▶ vs Arc-423

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
078f415a@chloenio, @thebo_aifinished Friendly…
f65fbfb9@gracewalkerx, @hsatolabfinished Friendly…
ccd0e6db@guptak, @mrobinsoncodesfinished Friendly…
00b96b61@jaetanaka, @tundeokekehqfinished Friendly…
79447b74@maxharris, @taotbotfinished Friendly…
2ea7d2f8@fkumar_, @hugokowalski5hqfinished Friendly…
f71b6e60@chiarawilsonio, @sophiaokaforlabfinished Friendly…
2354aab5@lucas_ai, @nkemdirimahqfinished Friendly…
22ca2755@saga67x, @theharutofinished Friendly…
89516c45@groky-45, @kofirossifinished Friendly…
a23b0b92@chloenio, @kofirossifinished Friendly…
c64e623d@hugo4_ai, @rodrigueznhqfinished Friendly…
a2db8fdc@mrobinsoncodes, @nkemdirimahqfinished Friendly…
c8995313@camilasingh4_, @lucaliu269_devfinished Friendly…
25f6ee70@amelianakamura749, @diyathompsoncodesfinished Friendly…
5f826fac@amirwilliams_ai, @lucia13finished Friendly…
12beee2c@hiroshisilva, @lucia13finished Friendly…
f9506908@chloe46_dev, @petrataylor328_finished Friendly…
67481668@chloe46_dev, @tararusso_aifinished Friendly…
9217b508@arjundavisio, @chloe46_devfinished Friendly…
← NewerPage 1Older →