public static void TestTournament()
        {
            Agent[] agents = new Agent[2];
            //agents[0] = new Agent(typeof(RandomAgent), "Random Agent");
            //agents[0] = new Agent(typeof(DynamicLookaheadAgent), "Dynamic Lookahead Agent");
            agents[0] = new Agent(typeof(SabberStoneCoreAi.Agent.AlvaroAgent), "AlvaroAgent");
            //agents[1] = new Agent(typeof(GreedyAgent), "Greedy Agent");
            //agents[1] = new Agent(typeof(SabberStoneCoreAi.Agent.AlvaroAgent), "AlvaroAgent");
            agents[1] = new Agent(typeof(SabberStoneBasicAI.AIAgents.TYamaoka.MyAgent), "TYamaokaAgent");
            //agents[2] = new Agent(typeof(DynamicLookaheadAgent), "Dynamic Lookahead Agent");
            //agents[3] = new Agent(typeof(BeamSearchAgent), "Beam Search Agent");

            CompetitionEvaluation.Deck[] decks = new CompetitionEvaluation.Deck[3];
            decks[0] = new CompetitionEvaluation.Deck(Decks.RenoKazakusMage, CardClass.MAGE, "Mage");
            decks[1] = new CompetitionEvaluation.Deck(Decks.AggroPirateWarrior, CardClass.WARRIOR, "Warrior");
            decks[2] = new CompetitionEvaluation.Deck(Decks.MidrangeJadeShaman, CardClass.SHAMAN, "Shaman");

            RoundRobinCompetition competition = new RoundRobinCompetition(agents, decks, "results.txt");

            competition.CreateTasks(100);
#if DEBUG
            competition.startEvaluation(1);
#else
            competition.startEvaluation(8);
#endif

            Console.WriteLine("Total Games Played: " + competition.GetTotalGamesPlayed());
            competition.PrintAgentStats();
        }
Ejemplo n.º 2
0
        public static void TestTournament()
        {
            Agent[] agents = new Agent[2];
            //agents[0] = new Agent(typeof(RandomAgent), "Random Agent");
            //agents[1] = new Agent(typeof(GreedyAgent), "Greedy Agent");
            //agents[2] = new Agent(typeof(DynamicLookaheadAgent), "Dynamic Lookahead Agent");
            //agents[3] = new Agent(typeof(BeamSearchAgent), "Beam Search Agent");
            //agents[4] = new Agent(typeof(Iteration4), "Iteration4");
            agents[0] = new Agent(typeof(Iteration4), "Iteration4");
            agents[1] = new Agent(typeof(DynamicLookaheadAgent), "Dynamic Lookahead Agent");

            CompetitionEvaluation.Deck[] decks = new CompetitionEvaluation.Deck[6];
            decks[0] = new CompetitionEvaluation.Deck(Decks.RenoKazakusMage, CardClass.MAGE, "Mage");
            decks[1] = new CompetitionEvaluation.Deck(Decks.AggroPirateWarrior, CardClass.WARRIOR, "Warrior");
            decks[2] = new CompetitionEvaluation.Deck(Decks.MidrangeJadeShaman, CardClass.SHAMAN, "Shaman");
            decks[3] = new CompetitionEvaluation.Deck(Decks.ZooDiscardWarlock, CardClass.WARLOCK, "Warlock");
            decks[4] = new CompetitionEvaluation.Deck(Decks.RenoKazakusDragonPriest, CardClass.PRIEST, "Priest");
            decks[5] = new CompetitionEvaluation.Deck(Decks.MurlocDruid, CardClass.DRUID, "Druid");

            RoundRobinCompetition competition = new RoundRobinCompetition(agents, decks, "results.txt");

            competition.CreateTasks(100);
            competition.startEvaluation(8);

            Console.WriteLine("Total Games Played: " + competition.GetTotalGamesPlayed());
            competition.PrintAgentStats();
        }