davidrmiller / biosim4

Biological evolution simulator
Other
3.21k stars 460 forks source link

Recreating something similar in Java #92

Open Skizzme opened 1 year ago

Skizzme commented 1 year ago

So I saw the video on YouTube and it inspired me to try and create something similar. I am doing it in Java, and I've gotten pretty far. The thing that is puzzling me is the way the network was setup from the genes. I'm not sure how it makes sense for 1 neuron to be the input for itself, and things like that. Could someone give a brief explanation?

davidrmiller commented 1 year ago

Hi @Skizzme, Currently it works something like this: First, all the input neurons are evaluated once and their outputs latched. Then all the internal neurons are evaluated once and their outputs latched. Finally the output neurons are evaluated and their outputs drive the actions. The latched outputs of the internal neurons are preserved until the next simulator cycle where they are available to use as inputs to other neurons -- or themselves -- as needed.

Good luck with the Java port. Let us know how it goes.

Skizzme commented 1 year ago

Ah, thanks a lot.