Exemplo n.º 1
0
        public static Nou Copy(Nou nou)
        {
            var newNou = new Nou();

            newNou._net1 = NeuralNetwork.ReadFromString(nou._net1.SaveAsString());
            newNou._net2 = NeuralNetwork.ReadFromString(nou._net2.SaveAsString());
            return(newNou);
        }
Exemplo n.º 2
0
        public IArtificialIntelligence CreateInstance()
        {
            var n = new Nou();

            if (System.IO.File.Exists("NouAi_0.txt"))
            {
                n.ReadFromFile(0, "NouAi_0.txt");
            }
            if (System.IO.File.Exists("NouAi_1.txt"))
            {
                n.ReadFromFile(1, "NouAi_1.txt");
            }
            return(n);
        }