Exemplo n.º 1
0
        public void learn(int number)
        {
            cwrite("Initiating learning mode.", "bot", COLOR_BOT);
            isRunning = true;
            //bool isLearning = true; //uncommented for now.
            if (number > 0)
            {
                initialise();
            }
            ReplayLearner rl = new ReplayLearner(mainBrowser, c);

            if (number > 0)
            {
                cwrite("Now downloading " + number.ToString() + " replays.", "bot", COLOR_BOT);
                rl.download(number);
            }
            else
            {
                rl.learn();
            }

            //isLearning = false;
            cwrite("Stopping learning processes.", "bot", COLOR_BOT);
        }
Exemplo n.º 2
0
        public void learn(int number)
        {
            cwrite("Initiating learning mode.", "bot", COLOR_BOT);
            isRunning = true;
            //bool isLearning = true; //uncommented for now.
            if (number > 0)
                initialise();
            ReplayLearner rl = new ReplayLearner(mainBrowser,c);

            if (number > 0)
            {
                cwrite("Now downloading " + number.ToString() + " replays.", "bot", COLOR_BOT);
                rl.download(number);
            }
            else
            {
                rl.learn();
            }
  
            //isLearning = false;
            cwrite("Stopping learning processes.", "bot", COLOR_BOT);
        }