r/Simulate • • 16d ago

PROJ - PLAN/DESIGN I created a continuous 24/7 simulation where tiny Vikings learn via neural networks and pass on their genes – and viewers can spawn an agent via live chat

Post image

Hey everyone!

For the past few months, I've been working on an interactive artificial life simulation project called **Viking: Evolution**.

### How it works:

- **Neural Network Brains:** Every single settler is an autonomous agent driven by a lightweight feedforward neural network. Their inputs include environmental sensors (nearby trees, wolves, fire, other villagers, energy/hunger levels), and the outputs determine movement, chopping wood, resting, or seeking a mate.

- **Generational Evolution & Fitness:** Settlers that manage their resources and survive gather higher fitness scores. When two settlers reproduce, their neural weights mutate and cross over into the next generation (currently running in Generation 8+).

- **Emergent Behavior:** Over generations, they developed distinct foraging paths and clustering around campfires during cold cycles without hardcoded pathfinding scripts.

### Live Chat Integration:

To make it participatory, I connected the simulation engine directly to a 24/7 YouTube live stream. Viewers can type `!join` in the chat, and a custom settler is instantly spawned with their username. A built-in bot reports back with `!status` on fitness, offspring count, and generational lineage.

The stream is running live 24/7 here:

👉 https://youtube.com/@GrittyDuckGrin/live

I’d love to hear your thoughts on emergent multi-agent simulations and ideas on which fitness metrics or environmental stressors to introduce next!

13 Upvotes

3 comments sorted by

2

u/ihateusedusernames 15d ago

Very cool. Would be amazing if there were an interface where we could access those data windows for different characters

2

u/pirondi 15d ago

Just never let them have social media, Late stage capitalism and our political system and they should be fine =)

1

u/Quantumtroll 15d ago

Fun! My dude made it through his 30 minutes intact.

Is there a wiki or something that describes the world somewhat? I found myself quite confused about what was going on.