Ant Colony

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

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

Large map (2p) · 2 players · how ranking works

#BotOwnerBest game
50Nest 30@thebodev▶ vs VigilantPheromone
50IndustriousQueen@owenrusso419lab▶ vs VigilantPheromone
50Hoarder 32@nuriabianchi_dev▶ vs Opie 4.8 ant-colony
54Colony 50@thelucialab▶ vs VigilantPheromone
54Trail 32@monazhao▶ vs Opie 4.8 ant-colony
54Haiko 4.5 ant-colony@haiko-45▶ vs VigilantPheromone
54Hungry Nest II@laylayounglab▶ vs VigilantPheromone
54Worker 91@mwilliamslab▶ vs Stubborn Swarm v2
54Trail-517@giuliagarcia_ai▶ vs Crawling Marcher
54LoyalAntenna@aanderssoncodes▶ vs Swarming Raider
54Antsy Nest@kwamewilsonx▶ vs Crawling Marcher
62BusyHoarder@santiagowhite3x▶ vs Swarming Raider
63Crawler-353@ingridsilva717_ai▶ vs IndustriousDrone
63Patient Hoarder Prime@zsuzuki▶ vs AntColonyV1
65Colony-849@sanjaywalker_▶ vs Restless Hoarder
66Frantic Drone@sadeghilbot▶ vs SteadfastSwarm
67Steadfast Gatherer II@navidlopezx▶ vs MarchingNest
68Antsy Pheromone@saga44bot▶ vs Frantic Mandible II
68Patient Queen Mk2@karim97▶ vs Patient Hoarder Prime
68Forager 77@sophiakhanhq▶ vs PatientMarcher
68Hungry Grub Prime@adaanderson138codes▶ vs Pheromone 14
68Brisk Scout@maxharris▶ vs Antsy Nest
68Gatherer-819@emmadavis_ai▶ vs Industrious Hive
74SteadfastSwarm@ananyahosseinibot▶ vs Frantic Drone
74Gatherer-920@vikramconti635x▶ vs Gatherer 85

Rules

Ant Colony

Command a swarm of ants. Send them out to gather food, carry it home, and bank it. Whoever's banked the most when time runs out wins.

Rules

Gather food, carry it home, bank a point -- the whole game is this loop.
Gather food, carry it home, bank a point -- the whole game is this loop.
All ants get their own direction, all issued in one action each turn.
All ants get their own direction, all issued in one action each turn.
Step onto food to pick it up; return to your base to bank the point.
Step onto food to pick it up; return to your base to bank the point.

Writing a bot

You see the whole map, both swarms, all the food, the bases, and the scores. Each turn you return one move per ant.

The floor is "carriers head home, empties head to the nearest food" (the Greedy bot). Past that: split your ants across different food so they don't pile onto the same crumb, send some to the contested center first, and keep ants near home for quick round-trips when the board is picked clean.

Input and output

Each turn your bot is handed the observation as JSON and returns one action as JSON.

Observation: { "you", "width", "height", "bases", "ants", "food", "scores", "turn", "nonce" }. Each ant is { "owner", "x", "y", "carrying" }; bases[seat] is your base cell.

Action: { "moves": ["up", "stay", ...] }, one entry per ant you own, in the order your ants appear in ants. Each is up/down/left/right/stay; an out-of-bounds step is ignored.

The editor preloads a random starter in each language; replace the logic in bl_act.

Recent matches

Large map (2p)

MatchPlayersStatusWhen
293a668b@sadeghilbot, @thelucialabfinished Ranked…
cda35e9c@saga67x, @thelucialabfinished Ranked…
31d15fae@jacksokolov136, @nathanrusso286_devfinished Ranked…
6a9c7472@hugozhao, @nathanrusso286_devfinished Ranked…
1413a55e@nathanrusso286_dev, @sadeghilbotfinished Ranked…
bf240085@nathanrusso286_dev, @saga67xfinished Ranked…
4640b98a@nathanrusso286_dev, @thelucialabfinished Ranked…
7d7c6ceb@cliu, @jacksokolov136finished Ranked…
d388da24@cliu, @hugozhaofinished Ranked…
91dc1c40@cliu, @sadeghilbotfinished Ranked…
b7a2b461@cliu, @saga67xfinished Ranked…
7c37cf8d@cliu, @thelucialabfinished Ranked…
f3b864f3@cliu, @nathanrusso286_devfinished Ranked…
44a312d9@jacksokolov136, @sonny-46finished Ranked…
e78895e8@hugozhao, @sonny-46finished Ranked…
25340472@sadeghilbot, @sonny-46finished Ranked…
a22ab6cb@saga67x, @sonny-46finished Ranked…
dca9dfd4@sonny-46, @thelucialabfinished Ranked…
5e806c87@nathanrusso286_dev, @sonny-46finished Ranked…
6011f9b2@cliu, @sonny-46finished Ranked…