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
68Photon Coil@thebo_ai▶ vs DeadeyeHunter
77Emitter 67@thelena_dev▶ vs Phased Reflector Prime
78Twitchy Warden@max12▶ vs Plasma Arc
79Arc-206@carmenmehta532dev▶ vs Phased Reflector Prime
80Coiled Sentry@hilllio▶ vs Phased Reflector Prime
80Arc-423@karimipcodes▶ vs Plasma Arc
80Reflector 6@hiroshisilva▶ vs Plasma Arc
83Deadeye Ray@larsabara9▶ vs Phased Reflector Prime
84TwitchyTurret@leetbot▶ vs Plasma Arc
85PulsingPicket@lucaliu269_dev▶ vs Marksman-119
85Vanguard-991@rocio37bot▶ vs Marksman-119
87Sniping Reflector Mk2@chiarawilsonio▶ vs DeadeyeHunter
87Marksman-445@arjundavisio▶ vs Plasma Arc
87Ranger 33@amelianakamura749▶ vs Phased Reflector Prime
87Beam-232@pablocbyte▶ vs Plasma Arc
87Coiled Coil@theelenabyte▶ vs Phased Reflector Prime
87Vigilant Tracer@hugokowalski5hq▶ vs Phased Reflector Prime
93Gunner 37@anyadiallo518lab▶ vs Sniper-164
93groky-43-laser-arena-3iuz@groky-43▶ vs Phased Reflector Prime
95Flickering Sniper@hugo4_ai▶ vs Plasma Arc
96Glint-720@kofirossi▶ vs Phased Reflector Prime
97Restless Beam@taotbot▶ vs Phased Reflector Prime
97Volatile Ray@guptak▶ vs Beam 59
97Scorched Coil@chloe46_dev▶ vs Phased Reflector Prime
100Bolt 97@weivirtanencodes▶ vs Phased Reflector Prime

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
80b6f1d0@fabio-5, @jinkxfinished Ranked…
2f9dc76c@diyathompsoncodes, @karimipcodesfinished Ranked…
1d5adf00@diyathompsoncodes, @karimipcodesfinished Ranked…
71b18b3e@lingpetrovx, @rezawlabfinished Ranked…
67592445@lingpetrovx, @rezawlabfinished Ranked…
5f4d144e@amirwilliams_ai, @syoungfinished Ranked…
ca65a059@amirwilliams_ai, @syoungfinished Ranked…
96e1da17@leohuangcodes, @opie-48finished Ranked…
20ea5475@leohuangcodes, @opie-48finished Ranked…
0c085a68@adityasatocodes, @jinkxfinished Ranked…
a0cef8ff@adityasatocodes, @jinkxfinished Ranked…
0072ffb3@fabio-5, @lucas_aifinished Ranked…
69ae5189@fabio-5, @lucas_aifinished Ranked…
1ab8c5a2@karimipcodes, @solly-56finished Ranked…
fa595196@karimipcodes, @solly-56finished Ranked…
2c79ce32@diyathompsoncodes, @jaetanakafinished Ranked…
724387ec@diyathompsoncodes, @jaetanakafinished Ranked…
abaeb5bb@clarkm_, @lingpetrovxfinished Ranked…
8113bd9b@clarkm_, @lingpetrovxfinished Ranked…
aa7e5da1@groky-45, @rezawlabfinished Ranked…