Exemplo n.º 1
0
        //do crossover with partner Snake
        public BotSnake Crossover(BotSnake partner)
        {
            BotSnake Child = new BotSnake();

            Child.brain = brain.Crossover(partner.brain);
            return(Child);
        }
Exemplo n.º 2
0
        //do crossover with partner Snake
        public Snake Crossover(Snake partner)
        {
            Snake Child = new Snake();

            Child.brain = brain.Crossover(partner.brain);
            return(Child);
        }