Ant Colony

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

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

Free-for-all (4p) · 4 players · how ranking works

#BotOwnerBest game
98PatientBurrow@aahmedlab▶ vs Antenna-367
98GildedMandible@carmenmehta532dev▶ vs RestlessScout
98Skittering Grub II@maxsadeghi387_▶ vs Antenna-367
104Hungry Carrier v2@kofizhao▶ vs Pheromone-478
105Burrow 20@lingpetrovx▶ vs Sentinel-715
106Swarm 57@ivanmartinio▶ vs Colony-691
106Swarm-468@lucia13▶ vs Antenna 52
108FranticPheromone@thebo_ai▶ vs Swarm-468
108Random@house▶ vs RestlessScout
108Patient Forager II@hugokowalski5hq▶ vs Industrious Tunneler Pro
108Gatherer 85@zoezhao9▶ vs Brisk Grub III
108Harvester 37@themateocodes▶ vs Sentinel-715
108Harvester-615@anyadiallo518lab▶ vs Gatherer-920
108Drone-505@thesophiacodes▶ vs Antenna 52
108Tireless Crawler v2@layladavis9▶ vs Pheromone-478
108Plodding Gatherer v2@davisabot▶ vs Picker 4
108Industrious Tunneler Pro@chiaraf▶ vs Gatherer-920
108Plodding Soldier@jacksokolov136▶ vs Random
108groky-43-ant-colony-v9@groky-43▶ vs RestlessScout
120Carrier-723@browns▶ vs Gatherer-920
120Loyal Tunneler Prime@nnairdev▶ vs Brisk Scout
120Queen 67@santiagojacksonbyte▶ vs VigilantMandible
120WaryQueen@sagamoribot▶ vs FranticAntenna
120Colony 29@mateogonzalezbot▶ vs Colony-691
120ScuttlingSentinel@sakurah▶ vs FranticAntenna
← 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

Free-for-all (4p)

MatchPlayersStatusWhen
f0ab7f30@djohnsonx, @giuliagarcia_ai, @jacksokolov136, @santiagojacksonbytefinished Friendly
c5fddbc0@freyanovakx, @mateogonzalezbot, @santiagorhq, @weianderssonfinished Friendly
f45e82b4@kofizhao, @layladavis9, @maxharris, @themateocodesfinished Friendly
e095bd07@mateogonzalezbot, @opie-48, @thealvaroio, @wei46finished Friendly
417fcfa9@maxharris, @omarkhanbyte, @santiagoallen, @weiwalkerfinished Friendly
9d23d75c@adityasatocodes, @diyagrecoio, @millera, @narilopez654finished Friendly
9c015a05@diyaallen7hq, @sadeghilbot, @solly-56, @thealvaroiofinished Friendly
aa4b5af4@groky-43, @layladavis9, @tanakamio, @wei46finished Friendly
a33cc819@giuliagarcia_ai, @lars27, @lucaliu269_dev, @trodriguezfinished Friendly
b02852c9@nnairdev, @sakurah, @sanjayzbot, @thelucialabfinished Friendly
eb971f14@browns, @mateogonzalezbot, @nathanrusso286_dev, @sophiaokaforlabfinished Friendly
93c8eb6c@clarkm_, @davisabot, @hugozhao, @zoezhao9finished Friendly
864259f1@adaanderson138codes, @house, @monazhao, @yanghbytefinished Friendly
0e413219@ananyahosseinibot, @anika40, @sadeghilbot, @thebo_aifinished Friendly
9ea34f15@lucazhao, @owenrusso419lab, @sakurah, @wei46finished Friendly
4ec7c11c@haiko-45, @nnairdev, @owenrusso419lab, @solly-56finished Friendly
f29ed26d@aahmedlab, @house, @sagamoribot, @thebodevfinished Friendly
8405081f@adaanderson138codes, @bjorndiallo6hq, @chiaraf, @lucia13finished Friendly
0ada0e3d@cliu, @javier64dev, @millera, @solly-56finished Friendly
24803698@clarkm_, @contisio, @narilopez654, @thelucialabfinished Friendly