Exemple #1
0
        static private Arena PrepareArenaHare(Perceptron perceptron)
        {
            var arena = new Arena(width, height);
            var hare  = new Hare(arena);
            var lynx  = new Lynx(arena);

            hare.Other = lynx;
            lynx.Other = hare;

            arena.AddAnimal(hare);
            arena.AddAnimal(lynx);

            hare.Perceptron = perceptron;

            return(arena);
        }