Story

Show HN: Swarm – Program a colony of 200 ants using a custom assembly language

armandhammer10 Friday, March 06, 2026

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.

Summary
Moment.js is a popular JavaScript library that provides a simple API for manipulating and formatting dates and times. It offers a wide range of features, including parsing, validating, and formatting dates, as well as handling time zones and performing date-related calculations.
153 49
Summary
dev.moment.com
Visit article Read on Hacker News Comments 49