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

armandhammer10 20 points 9 comments March 06, 2026
dev.moment.com · View on Hacker News

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.

Discussion Highlights (5 comments)

sudo_cowsay

Nice way of hiring but is it really worth it to give the public a trip to Maui (kinda expensive these days) Does it really reveal that much talent to make it worth the money? Just curious

TruffleLabs

Why? => "Moment Engineering by Moment Technology wants to access your {GitHub account name} account Personal user data Email addresses (read-only), profile information (read-only) This application will be able to read your private email addresses and read your private profile information."

4b11b4

Wait what this is the best reason to write a bunch of assembly AND learn about ants?

i_am_a_squirrel

what is this? assembly for ants?

nurettin

This is a balancing act between collectors and explorers. There is probably some optimized number. Likely targeted at beginners.

Semantic search powered by Rivestack pgvector
3,471 stories · 32,344 chunks indexed