public GenesisPhenotype(Counter counter, Genome genome, int inputs, int outputs) { for (int i = 0; i < inputs; i++) { Neuron n = new Neuron(new Linear(), counter.GetNeuronInnovation()); genome.AddNeuron(n); inputNeurons.Add(n); } for (int i = 0; i < outputs; i++) { Neuron n = new Neuron(new Linear(), counter.GetNeuronInnovation()); genome.AddNeuron(n); outputNeurons.Add(n); } foreach (Neuron inputN in inputNeurons) { foreach (Neuron outputN in outputNeurons) { Synapse s = new Synapse(counter.GetSynapseInnovation(), inputN.GetId, outputN.GetId, true); genome.AddSynapse(s); synapses.Add(s); } } }