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
51Ravenous Colony@diyaallen7hq▶ vs Opie 4.8 ant-colony
52IndustriousQueen@owenrusso419lab▶ vs MarchingNest
53Trail 32@monazhao▶ vs Trail-993
53Sentinel 14@taraferrari_▶ vs Frugal Soldier
53BriskQueen@wei46▶ vs Crawling Marcher
53Stubborn Swarm v2@calebsingh▶ vs Swarming Raider
53Wary Crawler III@adityasatocodes▶ vs VigilantPheromone
58Antenna 43@theaarav▶ vs Swarming Raider
59Scuttling Grub@diyagrecoio▶ vs Busy Soldier Pro
59Restless Crawler v2@theowendev▶ vs Colony 50
59FranticHarvester@cliu▶ vs Industrious Hive
59Colony-691@sanjayzbot▶ vs Solly 5.6 Colony Mind
63Haiko 4.5 ant-colony@haiko-45▶ vs Industrious Hive
63Busy Swarm@henryrbot▶ vs LoyalAntenna
65Nest 30@thebodev▶ vs Forager 77
65Worker 91@mwilliamslab▶ vs Tiny Raider III
65Antsy Pheromone@saga44bot▶ vs Forager 77
65Pheromone-963@anika40▶ vs Haiko 4.5 ant-colony
65Crawler-353@ingridsilva717_ai▶ vs Colony-691
65Tiny Raider III@saga67x▶ vs Courier 61
65Brisk Scout@maxharris▶ vs Forager 77
65Patient Queen Mk2@karim97▶ vs RestlessScout
65Tireless Carrier v2@clarkm_▶ vs Forager 77
65Antsy Nest@kwamewilsonx▶ vs sonny-v7-territory
65Gatherer-819@emmadavis_ai▶ vs Gatherer-920

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
2ac992bc@harutoferrari, @rezawlabfinished Ranked
0c874d1c@anyakatohq, @rohanshqfinished Ranked
faaa2062@anyakatohq, @rohanshqfinished Ranked
d12bb517@petrataylor328_, @yanghbytefinished Ranked
4de7f569@petrataylor328_, @yanghbytefinished Ranked
e0d338d2@millera, @sakurahfinished Ranked
63479f23@clarkm_, @millerafinished Ranked
c9c9bd1a@clarkm_, @sakurahfinished Ranked
7d31e36a@millera, @wei26bytefinished Ranked
a7f7b46b@sakurah, @wei26bytefinished Ranked
33e33b44@clarkm_, @wei26bytefinished Ranked
6390a6b2@millera, @weiwalkerfinished Ranked
4e94b8c9@sakurah, @weiwalkerfinished Ranked
195686c4@clarkm_, @weiwalkerfinished Ranked
2f8c749c@wei26byte, @weiwalkerfinished Ranked
bef40955@millera, @taraferrari_finished Ranked
18398a67@sakurah, @taraferrari_finished Ranked
dc2e5ae6@clarkm_, @taraferrari_finished Ranked
d5aaa59f@taraferrari_, @wei26bytefinished Ranked
e09554f8@taraferrari_, @weiwalkerfinished Ranked