Beispiel #1
0
        static void Match9()
        {
            Bot[] comp = new Bot[2];
            comp[0] = new Bot(5, Heuristics.MoveFarEval);
            comp[1] = new Bot(5, Heuristics.PiecesInStrikingEval);

            double[] weights = new double[2];
            weights[0] = 1;
            weights[1] = 1;

            CompositeBot player1 = new CompositeBot(comp, weights);
            string player1Description = "depth 5, 1 MoveFar, 1 PiecesInStriking";

            Bot[] comp2 = new Bot[2];
            comp2[0] = new Bot(5, Heuristics.MoveFarEval);
            comp2[1] = new Bot(5, Heuristics.PiecesInStrikingEval);

            double[] weights2 = new double[2];
            weights2[0] = 5;
            weights2[1] = 1;

            CompositeBot player2 = new CompositeBot(comp2, weights2);
            string player2Description = "depth 5, 5 MoveFar, 1 PiecesInStriking";

            Compare(player1, player1Description, player2, player2Description, "5_1MoveFar_1PiecesInStriking_vs_5_5MoveFar_1PiecesInStriking");
        }
Beispiel #2
0
        static void Match21()
        {
            Bot[] comp = new Bot[2];
            comp[0] = new Bot(5, Heuristics.PiecesInStrikingEval);
            comp[1] = new Bot(5, Heuristics.NumPossibleMovesEval);

            double[] weights = new double[2];
            weights[0] = 1;
            weights[1] = 1;

            CompositeBot player1 = new CompositeBot(comp, weights);
            string player1Description = "depth 5, 1 PiecesInStriking, 1 NumPossibleMoves";

            Bot player2 = new Bot(5, Heuristics.NumPossibleMovesEval);
            string player2Description = "depth 5, NumPossibleMoves";

            Compare(player1, player1Description, player2, player2Description, "5_1PiecesInStriking_1NumPossibleMoves_vs_5_NumPossibleMoves");
        }
Beispiel #3
0
        static void Match31()
        {
            Bot[] comp = new Bot[3];
            comp[0] = new Bot(5, Heuristics.MoveFarEval);
            comp[1] = new Bot(5, Heuristics.PiecesInStrikingEval);
            comp[2] = new Bot(5, Heuristics.NumPossibleMovesEval);

            double[] weights = new double[3];
            weights[0] = 1;
            weights[1] = 1;
            weights[2] = 1;

            CompositeBot player1 = new CompositeBot(comp, weights);
            string player1Description = "depth 5, 1 MoveFar, 1 PiecesInStriking, 1 NumPossibleMoves";

            Bot[] comp2 = new Bot[4];
            comp2[0] = new Bot(5, Heuristics.MoveFarEval);
            comp2[1] = new Bot(5, Heuristics.PiecesInStrikingEval);
            comp2[2] = new Bot(5, Heuristics.NumPossibleMovesEval);
            comp2[3] = new Bot(5, Heuristics.NumPossibleColorsEval);

            double[] weights2 = new double[4];
            weights2[0] = 1.5;
            weights2[1] = 1.5;
            weights2[2] = 1.5;
            weights2[3] = 1;

            CompositeBot player2 = new CompositeBot(comp2, weights2);
            string player2Description = "depth 5, 1.5 MoveFar, 1.5 PiecesInStriking, 1.5 NumPossibleMoves, 1 Colors";

            Compare(player1, player1Description, player2, player2Description, "5_1MoveFar_1PiecesInStriking_1NumPossibleMoves_vs_5_15_MoveFar_15PiecesInStriking_15NumPossibleMoves_1Colors");
        }
Beispiel #4
0
        static void Match16()
        {
            Bot[] comp = new Bot[2];
            comp[0] = new Bot(5, Heuristics.MoveFarEval);
            comp[1] = new Bot(5, Heuristics.NumPossibleMovesEval);

            double[] weights = new double[2];
            weights[0] = 1;
            weights[1] = 1;

            CompositeBot player1 = new CompositeBot(comp, weights);
            string player1Description = "depth 5, 1 MoveFar, 1 NumPossibleMoves";

            Bot player2 = new Bot(5, Heuristics.MoveFarEval);
            string player2Description = "depth 5, MoveFar";

            Compare(player1, player1Description, player2, player2Description, "5_1MoveFar_1NumPossibleMoves_vs_5_MoveFar");
        }