Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var weaselWorld = new WeaselWorld("ABCDEFGHIJKLMNOPQRSTUVWXYZ ", "METHINKS IT IS LIKE A WEASEL");

            weaselWorld.CreateWeasel(0.04d, 100);
            Console.ReadKey();
        }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     var weaselWorld = new WeaselWorld("ABCDEFGHIJKLMNOPQRSTUVWXYZ ", "METHINKS IT IS LIKE A WEASEL");
     weaselWorld.CreateWeasel(0.04d, 100);
     Console.ReadKey();
 }
Exemplo n.º 3
0
        private Individual ReproduceChild(double mutationRate, string alphabet)
        {
            var newLookslike = Lookslike.Select(c => WeaselWorld.MutateCharacter(c, mutationRate, alphabet));

            return(new Individual(new string(newLookslike.ToArray())));
        }