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

dev.moment.com

129 points by armandhammer10 11 hours ago


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.

TheAceOfHearts - 5 hours ago

That's really cute, it reminds me that Will Wright (creator of The Sims) has referenced this book "The Ants", by Bert Holldobler in multiple occasions as a key inspiration for his games (and in particular SimAnt) and systems thinking. Did you come across that during your research phase or had you not heard about it? I haven't read it yet, but maybe someday I'll get around to it.

onair4you - 2 hours ago

https://alliance.seas.upenn.edu/~plclub/contest/results.php

i_am_a_squirrel - 9 hours ago

what is this? assembly for ants?

RandomTeaParty - 4 hours ago

Did website break?

I only see "MOMENT" and "All systems nominal"

JetSetIlly - 3 hours ago

Cool. This is how I imagine the ants were programmed by the spiders in Children of Time.

phreeza - 4 hours ago

Reminds me of my personal HN glory days, now 16 years ago!! https://news.ycombinator.com/item?id=1395726

nozzlegear - 7 hours ago

I think I read a Daniel Suarez book about this once.

ivanjermakov - 32 minutes ago

All dark themes are too low contrast. Give me pure white (including comments) on pure black please.

general_reveal - 3 hours ago

Orwell would suggest you use the word normal.

Thanakorn_551 - 2 hours ago

This is really quite cool.

kleiba - 7 hours ago

I wish I could read dark-mode but my eyes somehow cannot handle it (not just on that website, in general).

4b11b4 - 9 hours ago

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

nurettin - 9 hours ago

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

FpUser - 4 hours ago

Am I being dumb? I was expecting to see ability to look at and run some canned sim

TruffleLabs - 10 hours ago

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."

jackfranklyn - 6 hours ago

[dead]

sudo_cowsay - 10 hours ago

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

devcraft_ai - 6 hours ago

[dead]

Uptrenda - 7 hours ago

[flagged]