Menu

1 / 18

Dancing with friends and enemies: boids' swarm intelligence

Hacker News·2 months ago
#oDNb9Ink
Reading 0:00
15s threshold

Message Boards

41

|

108K Views

|

30 Replies

|

160 Total Likes

The latest way I have found to use my expensive math software for frivolous entertainment is this. Here's is a way to describe it.

1000 dancers assume random positions on the dance-floor.

Each randomly chooses one "friend" and one "enemy".

At each step every dancer

moves 0.5% closer to the centre of the floor

then takes a large step towards their friend

and a small step away from their enemy.

At random intervals one dancer re-chooses their friend and enemy

Randomness is deliberately injected.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.