public Agent GenerateOffspring(double mutation) { Agent offspring = new Agent(); offspring.agentChromosome = this.agentChromosome.GetClone(); offspring.agentChromosome.Mutate(mutation); return offspring; }
public Form1() { InitializeComponent(); //Creating newAgents for (int i = 0; i < 9; i++) { Agent myAgent = new Agent(); agentList.Add(myAgent); } panelList.Add(panel1); panelList.Add(panel2); panelList.Add(panel3); panelList.Add(panel4); panelList.Add(panel5); panelList.Add(panel6); panelList.Add(panel7); panelList.Add(panel8); panelList.Add(panel9); }