Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra neuron for heartbeat, add heartbeat for continuous motion #12

wants to merge 1 commit into
base: master
Choose a base branch


Copy link

In the video, you can see that only using the distance from a node to the food will cause the input to never change once the creature is stationary. Only some twitching will cause a creature to keep moving, which is an unintentional side-effect of the physics engine.

Creating an extra node with a "heartbeat" will cause the input to constantly fluctuate, which gives the brain something to grab a hold of for continuous movement.

Tested locally to approx. gen 100, and already interesting results can be seen, with creatures almost walking, in a sense.

Note: Due to how the brain is created, this also causes an extra unneccesary neuron to be created in the output layer, but this should be harmless. I'm not completely familiar with the neural network code though, and this might require checking to make sure.

Note: This also causes an extra unneccesary neuron to be created in the output layer, but this should be harmless.
Copy link

Test results:

Copy link

MauroMombelli commented Jul 14, 2017 via email

Copy link

I don't think I completely understand what you mean, could you elaborate?

Copy link

Creature test (after a few thousand generations)

First test:
Second test: (my favorite)

Copy link

I let that second version run until just now (About two days total I think?)
Generation 11638
Creature video:

Copy link

alamaz commented Jul 29, 2017

This is a great modification!!
After merging into my branch, i instantly reached 100 chomps in less than 100 generations (in straight line). I think this is the most natural solution for solving the jumper creature problem!
See you

capture d ecran 2017-07-29 a 08 04 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants