Donitz's avatar

Neuropony

By Donitz
47 Favourites
19 Comments
10K Views
This month is a literal and figurative nightmare. I needed something to keep myself busy for a while, so I threw this together from some old pony assets I had laying around and a couple of artificial intelligence classes I based on this guide www.ai-junkie.com/ann/evolved/…

A pony in this game has a single chromosome.

Each pony is controlled by their own neural network (a very small very simple artificial brain).

The artificial neural network is wired according to the pony's genes.

The neural network takes input (what does the pony see around it), runs the input through a network of neurons and produces an output (what does the pony do).

The pony with good genes have a higher probability of being selected when producing new chromosomes.

A new chromosome is based on two other chromosomes, mom and dad.

There is a chance that there is a crossover between the two chromosomes (at some point they both flip their genes).

There is a chance that each gene will mutate.

This is artificial evolution according to some very simple rules.
IMAGE DETAILS
Image size
640x640px 27.54 KB
Published:
© 2013 - 2021 Donitz
Comments18
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In
monterrang's avatar
how to get all the 117 hearts?
Fulchrum's avatar
After an hour of letting it run with 100% speed, 100% crossover rate, 100% mutation rate, gradually going from 20 ponies and 8 reset timeout to 2 ponies and 50 reset timeout, a single pony can clear half the map.
FullmetalRainbowDash's avatar
I have also decided to dub my second run the ERA OF GREEN HAT JONES THE BALD MANE AND TAILED. He likes green hats, making left turns, and getting stuck in corners. I mean seriously, why are there so many of them? Three out of four of them are Green Hat Jones per run. Once, one of them had a blue hat. And Uncle Pale Wizard Hat John. Red Hat Tick. Purple hat Pierson. Brown Hat Barry I even set the mutation rate to 100% for a while, turned it low, and still had 4 Green Hat Joneses. I added more ponies, and they became the accursed descendants of Green Hat Jones. Oh no, the Joneses are getting Manes and Tails. He has a sister called Green Hat Sarah now. I JUST SET IT TO 100 AND THERE ARE LIKE 80 GREEN HAT JONESES WHAT IS GOING ON IN THE WORLD AAAAAAH! EVEN HIGHER. MAX CROSSOVER AND MUTATION. MIN CROSSOVER MAX MUTATION. MAX CROSSOVER MIN MUTATION. HIGH PONY COUNT, LOW PONY COUNT, NOTHING WORKS.

It started off with 4-8 ponies with 1% cross and mutate with 7 second reset timeout. It results with one pony dominating the genetic pool. The gene pool starts to look like a bar code. Genetic stagnation at it's best. I have doomed an entire subspecies.
FullmetalRainbowDash's avatar
Interesting. I finally slowed down the simulator after refining the genetic pool and found out the ones that get the most hearts are the ones that turn around to look backwards. Since they look backwards, they can take in more of their surroundings for an input to determine an output. I started with high pony count, 50% crossover, 50% mutation, quick reset timeout. I eventually decreased the pony count to 4, crossover to 1%, and mutation to 1%, with 60 seconds to find all the hearts. Unfortunately, they had a bias to turn on a hallway to the right instead of left. Although, if they had a bias to turn left, they would be stuck in a lot of places. If only there was a way to save this.
BlitzProg's avatar
It works very nicely. After some evolution, I've had many ponies taking the strategy to just go forward, and turn left when they hit an obstacle. A few also seems to react to the position of hearts and switch trajectory accordingly - My best pony had time to visit a whole half of the board before finally passing away, scoring 52 hearts out of 90 :D familink.blitzspace.com/db/NEF…
juliannelapuz's avatar
ha lol i put 1012 ponys!!!!!!!
mh3umaster's avatar
loopsorspool's avatar
in your opinion what is the best set up for the fastest evolution?
Donitz's avatar
Use the fastest simulation speed and like 20 ponies in the beginning, then reduce the number of ponies as they get more skilled.
loopsorspool's avatar
Thanks! Wasn't actually expecting a reply, especially not from the creator of this little game, but this is awesome!
tailsdollcreator's avatar
is there any way of getting this as a screensaver? 
Donitz's avatar
There are a few programs which say they can do that, if you Google convert swf into screensaver. Not sure which one I would trust.
tailsdollcreator's avatar
knowing my luck... yeah.... not trying it. thanks for the warning!
Alexapoda's avatar
Is there a way we can download it and play with the mutation rate and stuff? :3 I love it! I've had mine running for a couple hours now and some smart ones zoom around collecting hearts! n.n Would it be possible to add a save feature? (if, you know, you have oodles of time on your hands....)
Donitz's avatar
You can download the source over here dl.dropboxusercontent.com/u/69… , but you can already change most variables in this flash using the arrow keys.
Alexapoda's avatar
Is there a way we can download it and play with the mutation rate and stuff? :3 I love it! I've had mine running for a couple hours now and some smart ones zoom around collecting hearts! n.n Would it be possible to add a save feature? (if, you know, you have oodles of time on your hands....)
Em124's avatar
Wow, I'm being educated genetics from pastel colored 8 bit My Little Ponies on a pacman board. Nice.
F-Frost's avatar
I did not expect to sit by my computer on a Monday morning, being taught genetics, by ponies.
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In