Node Based Thinking: Creature.JS
An index of indices.
Pi-diameter-circumference is the basis for one-two-three. And, also, or, more-to-the point, zero-one-two. That is, zero and one is one and two. (An uber-basic index).
This is the basis, and the definition, for, a node (an uber-basic circle).
Therefore, you cannot get to, or from, a node, without an underlying circle.
This means a logic gate must always consist of one input, and, one output (no matter how many inputs). The process changes input into output. Therefore, again, you need an underlying circle.
Where a circle, joins, and separates, zero and one (any X and-or Y).
An index to (and from) an index is the definition of an index (where pi is the basis for an index) (pi is the technical name for index). You cannot have a two without a one.
Giving us the basis for, and, or, not, if, then, when. For, each, function. Creature. Move. Vary. Input. Push. Location. Network. Activate. Learn.
Meaning a circle is the virtual intelligence we call ‘nature.’ Behind a human’s symbolizations of nature. There is a circular relationship between nature, and, the symbolic representation of, nature.
creatures.forEach(function(creature)
{
// move
var input = [];
for (var i in creatures)
{
input.push(creatures[i].location.x);
input.push(creatures[i].location.y);
input.push(creatures[i].velocity.x);
input.push(creatures[i].velocity.y);
}
var output = creature.network.activate(input);
creature.moveTo(output);
// learn
var learningRate = .3;
var target = [
targetX(creature),
targetY(creature),
targetAngle(creature)];
creature.network.propagate(learningRate, target);
});