예제 #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);
        }
예제 #2
0
파일: Bot.cs 프로젝트: Deviach/ShowdownBot
        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);
        }