# Swarm – Program a colony of 200 ants using a custom assembl…

We built an ant colony simulation as an internal hiring challenge at Moment and decided to open it up publicly. You write a program in a custom assembly-like (we call it ant-ssembly) instruction set that controls 200 ants. Each ant can sense nearby cells (food, pheromones, home, other ants) but has…

- **Page:** https://magpie.gallery/i/swarm-program-a-colony-of-200-ants-using-a-custom-ya4h
- **Type:** Link to an idea elsewhere
- **Category:** Games
- **Runs on:** web
- **Tags:** ants, assembly, simulation, programming, colony

## Source

Web · armandhammer10: Swarm – Program a colony of 200 ants using a custom assembly language

- **Original:** https://news.ycombinator.com/item?id=47270807

> We built an ant colony simulation as an internal hiring challenge at Moment and decided to open it up publicly. You write a program in a custom assembly-like (we call it ant-ssembly) instruction set that controls 200 ants. Each ant can sense nearby cells (food, pheromones, home, other ants) but has no global view. The only coordination mechanism is pheromone trails, which ants can emit and sense them, but that's it. Your program runs identically on every ant. The goal is to collect the highest percentage of food across a set of maps. Different map layouts (clustered food, scattered, obstacles) reward very different strategies. The leaderboard is live. Grand prize is a trip to Maui for two paid for by Moment. Challenge closes March 12. Curious what strategies people discover. We've seen some surprisingly clever emergent behavior internally. https://dev.moment.com/

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
