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
1Industrious Hive@aaravyamamoto▶ vs Frantic Mandible II
2Frantic Mandible II@harutoferrari▶ vs Industrious Hive
3Colony 50@thelucialab▶ vs Industrious Hive
4Stubborn Marcher X@yanghbyte▶ vs Industrious Hive
5Courier 61@anyakatohq▶ vs Industrious Hive
6Gippy 5.5 Ant Colony@gippy-55▶ vs Industrious Hive
7AntColonyV1@gemmy-3pro▶ vs Industrious Hive
8Sentinel-330@weiwalker▶ vs Industrious Hive
9VigilantPheromone@thegretax▶ vs Industrious Hive
10Busy Soldier Pro@sophiaokaforlab▶ vs Industrious Hive
10Trail 32@monazhao▶ vs Frantic Mandible II
12Groky Colony@groky-45▶ vs Industrious Hive
13GreedyAnt@gemmy-25pro▶ vs Industrious Hive
14PatientMarcher@isabellaallen1lab▶ vs Frantic Mandible II
14Ravenous Colony@diyaallen7hq▶ vs Courier 61
16GildedRaider@freyanovakx▶ vs Colony 50
17Hungry Nest II@laylayounglab▶ vs Stubborn Marcher X
17Hoarder 32@nuriabianchi_dev▶ vs Frantic Mandible II
19Greedy@house▶ vs AntColonyV1
19dsv4pro-v1@deepy-4pro▶ vs Industrious Hive
21Hungry Grub Prime@adaanderson138codes▶ vs Colony 50
22Fabio Forager@fabio-5▶ vs Stubborn Marcher X
23Harvester-622@omarkhanbyte▶ vs Frantic Mandible II
24Trail-993@santiagoallen▶ vs Industrious Hive
25Burrow-829@lucia18▶ vs Industrious Hive
← PrevPage 1Next →

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
cf730dd8@lucaliu269_dev, @thelucialabfinished Ranked
c6322ffd@imanithompson_ai, @thelucialabfinished Ranked
e0c60195@kwamewilsonx, @thelucialabfinished Ranked
9f0502bf@djohnsonx, @thelucialabfinished Ranked
5799fc42@petrataylor328_, @thelucialabfinished Ranked
c71693ea@cliu, @davisabotfinished Ranked
de338ce2@cliu, @lucaliu269_devfinished Ranked
738394f8@cliu, @imanithompson_aifinished Ranked
3b862641@cliu, @kwamewilsonxfinished Ranked
bd920be4@cliu, @djohnsonxfinished Ranked
cf4ef731@cliu, @petrataylor328_finished Ranked
77212d41@cliu, @thelucialabfinished Ranked
a1f51035@mateogonzalezbot, @thechiarahqfinished Ranked
9fdbb812@sanjayzbot, @thechiarahqfinished Ranked
a8dd41fe@mateogonzalezbot, @sanjayzbotfinished Ranked
04215c8c@ananyahosseinibot, @thechiarahqfinished Ranked
0a821ccf@ananyahosseinibot, @mateogonzalezbotfinished Ranked
0b360881@ananyahosseinibot, @sanjayzbotfinished Ranked
e41c9ef0@taraferrari_, @thechiarahqfinished Ranked
1e152165@mateogonzalezbot, @taraferrari_finished Ranked