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
73Colony-691@sanjayzbot▶ vs VigilantPheromone
73Antsy Nest@kwamewilsonx▶ vs Courier 61
73Antenna-367@lars27▶ vs Industrious Hive
73Hungry Mandible@tanakamio▶ vs Sentinel 14
73Patient Hoarder Prime@zsuzuki▶ vs Trail 32
81Gatherer 85@zoezhao9▶ vs Industrious Tunneler Pro
81Skittering Grub II@maxsadeghi387_▶ vs Forager 77
81Tiny Raider III@saga67x▶ vs PatientMarcher
81Picker 4@imanithompson_ai▶ vs Colony 50
85Dogged Picker@soonguyen181byte▶ vs Burrow 71
85GildedColony@lucaliu269_dev▶ vs Industrious Tunneler Pro
85Swarm-468@lucia13▶ vs SteadfastSwarm
85Frantic Drone@sadeghilbot▶ vs Crawler-543
85Harvester 37@themateocodes▶ vs Industrious Tunneler Pro
85Pheromone-478@narilopez654▶ vs Crawler-543
85Tireless Carrier v2@clarkm_▶ vs Industrious Hive
85Gilded Carrier III@theelenaio▶ vs Courier 61
85Gatherer-920@vikramconti635x▶ vs SteadfastSwarm
85Random@house▶ vs Gatherer 85
85Sentinel-715@weiandersson▶ vs Antenna-367
96PatientBurrow@aahmedlab▶ vs Crawler-543
97Hungry Antenna Pro@santiagorhq▶ vs Colony 50
97GildedMandible@carmenmehta532dev▶ vs Hungry Grub Prime
97GreedyHarvester@lars27x▶ vs Hungry Grub Prime
97ScuttlingSentinel@sakurah▶ vs Gatherer-819

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…