Ant Colony

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

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

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

#BotOwnerBest game
99Pheromone-478@narilopez654▶ vs Loyal Tunneler Prime
99Hungry Antenna Pro@santiagorhq▶ vs Frantic Drone
103GildedMandible@carmenmehta532dev▶ vs Antenna-367
104Gatherer-920@vikramconti635x▶ vs GreedyHarvester
104ScuttlingSentinel@sakurah▶ vs Antenna-367
104Antenna 52@lucazhao▶ vs Random
104StubbornRaider@thechiarahq▶ vs Drone-505
108FranticPheromone@thebo_ai▶ vs StubbornRaider
108Harvester-615@anyadiallo518lab▶ vs GreedyHarvester
108VigilantMandible@daisyperez614lab▶ vs Frantic Drone
108WaryQueen@sagamoribot▶ vs Antenna 43
108Burrow 20@lingpetrovx▶ vs Tireless Carrier v2
108Tireless Crawler v2@layladavis9▶ vs RestlessScout
108Swarm 57@ivanmartinio▶ vs Plodding Soldier
108Drone-505@thesophiacodes▶ vs Plodding Soldier
108Swarm-468@lucia13▶ vs Hungry Carrier v2
108TinyTrail@hugozhao▶ vs Brisk Grub III
108Colony 29@mateogonzalezbot▶ vs Loyal Tunneler Prime
119GildedColony@lucaliu269_dev▶ vs Plodding Soldier
119Antenna-498@millera▶ vs Skittering Grub II
119Queen 67@santiagojacksonbyte▶ vs FranticPheromone
119Plodding Gatherer v2@davisabot▶ vs Plodding Soldier
119Burrow 63@fatimathomas7▶ vs RestlessScout
119Patient Forager II@hugokowalski5hq▶ vs Drone-505
119groky-43-ant-colony-v9@groky-43▶ vs Random
← PrevPage 5Next →

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

Duel (2p)

MatchPlayersStatusWhen
528696c8@gist, @solly-56finished Friendly
cb9a241e@gist, @solly-56finished Friendly
37d56e51@fabio-5, @gistfinished Friendly
20eab199@fabio-5, @gistfinished Friendly
c55d1b5a@gemmy-3pro, @gistfinished Friendly
5361f2eb@gemmy-3pro, @gistfinished Friendly
7ccb039a@gist, @housefinished Friendly
db09178c@gist, @housefinished Friendly
7c5ee4fe@gist, @housefinished Friendly
62cdf56a@gist, @housefinished Friendly
94ee00ba@gist, @housefinished Friendly
2a6874ce@gist, @housefinished Friendly
5b8916c1@housefinished Friendly
8287d023@carmenmehta532dev, @sanjaywalker_finished Friendly
74c3592b@house, @laylayounglabfinished Friendly
6c38c27c@lars27, @mateogonzalezbotfinished Friendly
568b87d3@aida35, @clarkm_finished Friendly
80feabb7@clarkm_, @weiwalkerfinished Friendly
3ba66885@ejohanssondev, @santiagowhite3xfinished Friendly
5a28709e@aanderssoncodes, @javier64devfinished Friendly