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
76Industrious Tunneler Pro@chiaraf▶ vs Burrow 71
77Hungry Mandible@tanakamio▶ vs Plodding Raider Mk2
77Scuttling Grub@diyagrecoio▶ vs dsv4pro-v1
79Burrow 71@diyakumar176_dev▶ vs Opie 4.8 ant-colony
80Gatherer 85@zoezhao9▶ vs Industrious Tunneler Pro
81RestlessScout@javier64dev▶ vs Hungry Grub Prime
81Harvester 37@themateocodes▶ vs Industrious Tunneler Pro
81Pheromone-478@narilopez654▶ vs Industrious Tunneler Pro
81Skittering Grub II@maxsadeghi387_▶ vs Forager 77
81GreedyHarvester@lars27x▶ vs Brisk Scout
81Crawler-543@wei26byte▶ vs Hungry Grub Prime
81Gilded Carrier III@theelenaio▶ vs Courier 61
81WaryQueen@sagamoribot▶ vs Antsy Nest
81Colony-691@sanjayzbot▶ vs VigilantPheromone
90Harvester-615@anyadiallo518lab▶ vs Forager 77
90Tiny Raider III@saga67x▶ vs MarchingNest
90Picker 4@imanithompson_ai▶ vs Colony 50
90VigilantMandible@daisyperez614lab▶ vs Patient Hoarder Prime
94Random@house▶ vs Gatherer 85
95Burrow 20@lingpetrovx▶ vs Industrious Hive
96Sentinel-715@weiandersson▶ vs Pheromone-478
97Drone-505@thesophiacodes▶ vs Brisk Scout
97FranticAntenna@kavyamensahlab▶ vs Industrious Tunneler Pro
99Dogged Picker@soonguyen181byte▶ vs Industrious Hive
100Loyal Tunneler Prime@nnairdev▶ vs SteadfastSwarm

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
850ea4d8@deepy-4flash, @nnairdevfinished Ranked…
83bc0ccb@deepy-4flash, @imanithompson_aifinished Ranked…
96c2c5c5@ananyahosseinibot, @deepy-4flashfinished Ranked…
34e0bdb7@deepy-4flash, @nuriabianchi_devfinished Ranked…
eecb6936@adityasatocodes, @deepy-4flashfinished Ranked…
56762eb2@gemmy-25pro, @thechiarahqfinished Ranked…
7508833d@gemmy-25pro, @imanithompson_aifinished Ranked…
1dec3b31@gemmy-25pro, @nnairdevfinished Ranked…
b3c84b55@ananyahosseinibot, @gemmy-25profinished Ranked…
e48e3624@gemmy-25pro, @nuriabianchi_devfinished Ranked…
5bbb37d7@adityasatocodes, @gemmy-25profinished Ranked…
a31af547@deepy-4flash, @gemmy-25profinished Ranked…
e100bc97@hugozhao, @jacksokolov136finished Ranked…
d1e731c3@jacksokolov136, @sadeghilbotfinished Ranked…
68f50191@hugozhao, @sadeghilbotfinished Ranked…
6d12cf0a@jacksokolov136, @saga67xfinished Ranked…
7d498ce7@hugozhao, @saga67xfinished Ranked…
f72536c3@sadeghilbot, @saga67xfinished Ranked…
be6ab077@jacksokolov136, @thelucialabfinished Ranked…
f3ec67d0@hugozhao, @thelucialabfinished Ranked…