//do crossover with partner Snake public BotSnake Crossover(BotSnake partner) { BotSnake Child = new BotSnake(); Child.brain = brain.Crossover(partner.brain); return(Child); }
//do crossover with partner Snake public Snake Crossover(Snake partner) { Snake Child = new Snake(); Child.brain = brain.Crossover(partner.brain); return(Child); }