@binaryblues — Since neural nets require lots of data to perform well, It takes a long time for interesting behavior to emerge in this—for example I had to leave it on overnight before any of the creatures figured out that moving in a straight line was better than aimlessly spinning.
Because it would be lovely to be able to save state and restore state, so that any learning done in a single session wasn’t automatically lost when the project closed, I’ve been trying to figure out how to serialize the “brain” objects, but the neural net part seems to be an infinite recursion and is flummoxing me.
Can you help me figure out how to serialized the brains?
This version has even more parameters you can control, including lifespans, and it also tracks the creatures who have existed for the most generations. Plus it has more interesting starting conditions, I think.