예제 #1
0
        public Snake(Snake parent1, Snake parent2)
        {
            Brain = new NeuralNet(parent1.Brain, parent2.Brain);

            Tail.Add(new Point(Head.X - 1, Head.Y));
            Tail.Add(new Point(Head.X - 1, Head.Y));

            NewFood();
        }
예제 #2
0
        public Snake()
        {
            Brain = new NeuralNet();

            Tail.Add(new Point(Head.X - 1, Head.Y));
            Tail.Add(new Point(Head.X - 1, Head.Y));

            NewFood();
        }