Exemple #1
0
        public void TestQuiescenceDepth()
        {
            Board board = new Board();

            // Generate move here for white to play
            Tuple <UInt16, int> moveAndScore = AlphaBeta2.RootAlphaBetaTT(board, 1, 6);

            // AlphaBeta2.RootAlphaBetaTTParallel(board, 1, 6);
            board.MakeMove(moveAndScore.Item1);



            // following was bad move by FM
            board.MakeUserMove("d4d8");
            board.MakeUserMove("a2c4");
        }
Exemple #2
0
        public void Game7VsTitan_NotCheckmating()
        {
            Board board = new Board();

            board.MakeUserMove("d2d4  ");
            board.MakeUserMove("d7d5");

            board.MakeUserMove("c2c3  ");
            board.MakeUserMove("g8f6");

            board.MakeUserMove("g2g3  ");
            board.MakeUserMove("e7e6");

            board.MakeUserMove("c1g5  ");
            board.MakeUserMove("f8d6");

            board.MakeUserMove("e2e4 ");
            board.MakeUserMove("d5e4");

            board.MakeUserMove("b1d2  ");
            board.MakeUserMove("d6e7");

            board.MakeUserMove("d1a4  ");
            board.MakeUserMove("d8d7");

            board.MakeUserMove("a4c2  ");
            board.MakeUserMove("e8g8");

            board.MakeUserMove("f1h3  ");
            board.MakeUserMove("b8c6");

            board.MakeUserMove("g5f6  ");
            board.MakeUserMove("g7f6");

            board.MakeUserMove("c2e4  ");
            board.MakeUserMove("f6f5");

            board.MakeUserMove("e4e3   ");
            board.MakeUserMove("b7b5");

            board.MakeUserMove("h3g2   ");
            board.MakeUserMove("c8b7");

            board.MakeUserMove("g1f3   ");
            board.MakeUserMove("f7f6");

            board.MakeUserMove("f3h4   ");
            board.MakeUserMove("f8b8 ");

            board.MakeUserMove("d2b3  ");
            board.MakeUserMove("b5b4");

            board.MakeUserMove("b3c5   ");
            board.MakeUserMove("e7c5");

            board.MakeUserMove("d4c5   ");
            board.MakeUserMove("a7a5");

            board.MakeUserMove("a2a3   ");
            board.MakeUserMove("e6e5");

            board.MakeUserMove("a1d1   ");
            board.MakeUserMove("d7e6");

            board.MakeUserMove("g2d5   ");
            board.MakeUserMove("e6d5");

            board.MakeUserMove("d1d5    ");
            board.MakeUserMove("c6e7");

            board.MakeUserMove("d5d7    ");
            board.MakeUserMove("b7h1");

            board.MakeUserMove("d7e7    ");
            board.MakeUserMove("b4a3 ");

            board.MakeUserMove("e3h6    ");
            board.MakeUserMove("g8h8");


            // Generate move here for white to play
            Tuple <UInt16, int> moveAndScore = AlphaBeta2.RootAlphaBetaTT(board, 1, 6);

            // AlphaBeta2.RootAlphaBetaTTParallel(board, 1, 6);
            board.MakeMove(moveAndScore.Item1);



            // following was bad move by FM
            board.MakeUserMove("d4d8");
            board.MakeUserMove("a2c4");
        }