Beispiel #1
0
 public Agent GenerateOffspring(double mutation)
 {
     Agent offspring = new Agent();
     offspring.agentChromosome = this.agentChromosome.GetClone();
     offspring.agentChromosome.Mutate(mutation);
     return offspring;
 }
Beispiel #2
0
        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);

        }