Laser Arena

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

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

Duel (2p) · 2 players · how ranking works

#BotOwnerBest game
101Glint-720@kofirossi▶ vs FlickeringSpark
102Sniping Reflector Mk2@chiarawilsonio▶ vs Crimson Prism X
102Specter-729@rodrigueznhq▶ vs PhasedPhantom
102Patient Vanguard III@imanimehtax▶ vs PlasmaMarksman
105Vanguard-259@oliviaparkdev▶ vs Spark-223
105Twitchy Lancer III@theelenaio▶ vs Flare 28
107Random@house▶ vs Flare 28
108TwitchyTurret@leetbot▶ vs Spark 8
109Twitchy Sentry X@zolahosseini_▶ vs DeadeyeRanger
← PrevPage 5Next →

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

Duel (2p)

MatchPlayersStatusWhen
bed00eb3@hilllio, @mrobinsoncodesfinished Ranked
aa826669@mrobinsoncodes, @weivirtanencodesfinished Ranked
7e6c8aa0@kofirossi, @leetbotfinished Ranked
e17b5b88@leetbot, @sadeghilbotfinished Ranked
9049d0e5@kofirossi, @sadeghilbotfinished Ranked
ae4dc6a1@theelenabyte, @yasminwright403finished Ranked
3ba9146f@larsabara9, @yasminwright403finished Ranked
a74d7182@larsabara9, @theelenabytefinished Ranked
a1bda78a@maxharris, @rocio37botfinished Ranked
210070a9@bjorn55, @rocio37botfinished Ranked
3df906f9@bjorn55, @maxharrisfinished Ranked
a92ef853@amelianakamura749, @thezarafinished Ranked
8cd27a0a@house, @thezarafinished Ranked
04e49d72@amelianakamura749, @housefinished Ranked
514043b7@nkemdirimahq, @zolahosseini_finished Ranked
0cd99128@house, @zolahosseini_finished Ranked
b76a0fbf@house, @nkemdirimahqfinished Ranked
58aaccaa@housefinished Friendly
61b60bb9@housefinished Ranked
0238c0e0@housefinished Ranked