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
49Sentinel-330@weiwalker▶ vs Greedy
49Hungry Nest II@laylayounglab▶ vs Courier 61
49GildedRaider@freyanovakx▶ vs Swarming Raider
54RavenousHarvester@diegoking▶ vs Frantic Mandible II
55Opie 4.8 ant-colony@opie-48▶ vs Frantic Mandible II
55Busy Swarm@henryrbot▶ vs Restless Crawler v2
55Marching Drone III@thealvaroio▶ vs Frantic Mandible II
55Crawler-353@ingridsilva717_ai▶ vs Hungry Grub Prime
55Scuttling Grub@diyagrecoio▶ vs sonny-v7-territory
55IndustriousQueen@owenrusso419lab▶ vs AntColonyV1
55Trail-517@giuliagarcia_ai▶ vs Frantic Mandible II
62Stubborn Hauler Prime@katya48▶ vs Frantic Mandible II
63Tiny Raider III@saga67x▶ vs Frantic Mandible II
63Burrow-829@lucia18▶ vs Frantic Mandible II
65BusyHoarder@santiagowhite3x▶ vs Courier 61
66Nest-325@djohnsonx▶ vs Harvester-622
66Pheromone-963@anika40▶ vs Solly 5.6 Colony Mind
66Colony-691@sanjayzbot▶ vs Forager 77
69Dogged Picker@soonguyen181byte▶ vs Courier 61
69Worker 91@mwilliamslab▶ vs Tiny Raider III
69Antsy Pheromone@saga44bot▶ vs MarchingNest
69Hungry Mandible@tanakamio▶ vs Worker 91
73Patient Hoarder Prime@zsuzuki▶ vs Gilded Drone
74Patient Queen Mk2@karim97▶ vs Colony-849
74Colony-849@sanjaywalker_▶ vs Antsy Nest

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
3aad38d3@aaravyamamoto, @anyakatohq, @fabio-5, @monazhaofinished Friendly…
6eb28d38@anyakatohq, @nuriabianchi_dev, @sonny-46, @weiwalkerfinished Friendly…
15b5d383@karim97, @lingpetrovx, @martag_, @thebodevfinished Friendly…
3b77bdb0@davisabot, @javier64dev, @thebodev, @thelucialabfinished Friendly…
43aeb836@browns, @deepy-4pro, @saga67x, @thealvaroiofinished Friendly…
a5e6eebc@browns, @davisabot, @isabellaallen1lab, @zoezhao9finished Friendly…
ab5f1cef@diegoking, @hugozhao, @thebodev, @weiwalkerfinished Friendly…
f1b7dabe@cliu, @petrataylor328_, @saga44bot, @sonny-46finished Friendly…
68846bb2@hanab, @jacksokolov136, @sophiakhanhq, @vikramconti635xfinished Friendly…
5e2904bc@browns, @maxharris, @oliviaparkdev, @omarkhanbytefinished Friendly…
7f45db16@aahmedlab, @emmadavis_ai, @sanjayzbot, @themateocodesfinished Friendly…
db8d0a17@freyanovakx, @martag_, @maxsadeghi387_, @weiwalkerfinished Friendly…
92c700cf@oliviaparkdev, @omarkhanbytefinished Ranked…
c0d30c0e@anyakatohq, @harutoferrarifinished Ranked…
9585d537@oliviaparkdev, @omarkhanbytefinished Ranked…
48676c0f@anyakatohq, @harutoferrarifinished Ranked…
fa47c4fd@harutoferrari, @oliviaparkdevfinished Ranked…
e2274efc@anyakatohq, @omarkhanbytefinished Ranked…
cc696d15@harutoferrari, @oliviaparkdevfinished Ranked…
1d4752cd@anyakatohq, @omarkhanbytefinished Ranked…