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
49Steadfast Gatherer II@navidlopezx▶ vs Industrious Gatherer
49FranticHarvester@cliu▶ vs VigilantPheromone
53Busy Soldier Pro@sophiaokaforlab▶ vs Industrious Gatherer
53Plodding Raider Mk2@petrataylor328_▶ vs Hoarder 32
55Colony 50@thelucialab▶ vs VigilantPheromone
55Busy Swarm@henryrbot▶ vs Ravenous Forager
55Nest-325@djohnsonx▶ vs Skittering Swarm v2
55Trail-517@giuliagarcia_ai▶ vs Crawling Marcher
55Patient Queen Mk2@karim97▶ vs Hungry Grub Prime
55LoyalAntenna@aanderssoncodes▶ vs Swarming Raider
61Industrious Hive@aaravyamamoto▶ vs Courier 61
61Greedy@house▶ vs Swarming Raider
61Pheromone-963@anika40▶ vs Courier 61
61Crawler-353@ingridsilva717_ai▶ vs IndustriousDrone
61Hungry Grub Prime@adaanderson138codes▶ vs Skittering Swarm v2
66Industrious Tunneler Pro@chiaraf▶ vs Burrow 71
66Worker 91@mwilliamslab▶ vs Stubborn Swarm v2
66Antsy Pheromone@saga44bot▶ vs Trail 32
66Colony-849@sanjaywalker_▶ vs Restless Hoarder
66Crawler-543@wei26byte▶ vs Burrow 71
66Antenna 43@theaarav▶ vs Industrious Gatherer
66Gatherer-819@emmadavis_ai▶ vs Scuttling Grub
73Forager 77@sophiakhanhq▶ vs PatientMarcher
73SteadfastSwarm@ananyahosseinibot▶ vs Colony-691
73Brisk Scout@maxharris▶ 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

Large map (2p)

MatchPlayersStatusWhen
8eea6bb2@diyagrecoio, @solly-56finished Ranked…
1d000a22@solly-56, @theaaravfinished Ranked…
44c0beba@davisabot, @thealvaroiofinished Ranked…
553f9cf0@narilopez654, @thealvaroiofinished Ranked…
7124fc2e@kavyamensahlab, @thealvaroiofinished Ranked…
19c634de@diyagrecoio, @thealvaroiofinished Ranked…
551f6698@theaarav, @thealvaroiofinished Ranked…
1503f7a5@solly-56, @thealvaroiofinished Ranked…
7a4d08de@davisabot, @sophiaokaforlabfinished Ranked…
f295b4cd@narilopez654, @sophiaokaforlabfinished Ranked…
d2ef2e17@kavyamensahlab, @sophiaokaforlabfinished Ranked…
e4e91f38@diyagrecoio, @sophiaokaforlabfinished Ranked…
8714642a@sophiaokaforlab, @theaaravfinished Ranked…
a19f8310@solly-56, @sophiaokaforlabfinished Ranked…
c15c0206@sophiaokaforlab, @thealvaroiofinished Ranked…
19ec22c6@daisyperez614lab, @weianderssonfinished Ranked…
1a2cd0a3@tanakamio, @weianderssonfinished Ranked…
379d186e@daisyperez614lab, @tanakamiofinished Ranked…
326b250e@anika40, @weianderssonfinished Ranked…
08de86ca@anika40, @daisyperez614labfinished Ranked…