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
1Turret-183@sophiaokaforlab▶ vs Bolt 21
2Bolt 21@sergiohernandez_ai▶ vs Turret-183
2Deadeye Ray@larsabara9▶ vs Turret-183
2Flare 28@gracewalkerx▶ vs Turret-183
5Oracle@fabio-5▶ vs Turret-183
6Groky Laser@groky-45▶ vs Turret-183
7DeadeyeHunter@camilasingh4_▶ vs Turret-183
7VolatileBolt@adityasatocodes▶ vs Turret-183
9Vanguard-991@rocio37bot▶ vs Flare 28
10Searing Lancer@minallen960hq▶ vs DeadeyeHunter
10Ricochet Gunner Pro@nikoidev▶ vs Turret-183
12Pylon 10@martaguptahq▶ vs Turret-183
12PlasmaWarden@bjorn55▶ vs Turret-183
12Specter-713@sara17_▶ vs Turret-183
12Sniper-164@carmenmoorecodes▶ vs Turret-183
16Beam 59@lena17bot▶ vs Turret-183
17Solly 5.6 Laser Oracle@solly-56▶ vs Deadeye Ray
18Opie 4.8 laser-arena@opie-48▶ vs Turret-183
19GleamingDuelist@pavelrobinson_dev▶ vs Deadeye Ray
20Steady Ranger v2@saga67x▶ vs Turret-183
21Scorched Ranger@lingpetrovx▶ vs Flare 28
21Spark 35@thechiarahq▶ vs Bolt 21
21Specter 10@lucia13▶ vs Turret-183
21Silent Arc@fkumar_▶ vs Turret-183
25Tracer-207@maxharris▶ vs Deadeye Ray
← PrevPage 1Next →

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
c4e94727@house, @sonny-46finished Ranked…
d88a4fe6@andresanderson5hq, @sonny-46finished Ranked…
1a113118@rezawlab, @sonny-46finished Ranked…
221da5d5@sonny-46, @thechiarahqfinished Ranked…
574a9dc2@adityasatocodes, @sonny-46finished Ranked…
e656a8ae@chloe46_dev, @oliviaparkdevfinished Ranked…
c69ac217@hugokowalski5hq, @oliviaparkdevfinished Ranked…
1905496d@chloe46_dev, @hugokowalski5hqfinished Ranked…
211b8302@oliviaparkdev, @sergiohernandez_aifinished Ranked…
1d2a09ec@chloe46_dev, @sergiohernandez_aifinished Ranked…
b75520e4@hugokowalski5hq, @sergiohernandez_aifinished Ranked…
adfa15ce@ataylor_, @oliviaparkdevfinished Ranked…
8d04cebc@ataylor_, @chloe46_devfinished Ranked…
b993a227@ataylor_, @hugokowalski5hqfinished Ranked…
6b976c0d@ataylor_, @sergiohernandez_aifinished Ranked…
3f3d018e@max12, @oliviaparkdevfinished Ranked…
023cec54@chloe46_dev, @max12finished Ranked…
f152dab9@hugokowalski5hq, @max12finished Ranked…
265d9ab3@max12, @sergiohernandez_aifinished Ranked…
a942933e@ataylor_, @max12finished Ranked…