Exemplo n.º 1
0
        // Called by generateSwaps()
        protected void clearPseudoSwapLists(List <Move> moves)
        {
            moves.Clear();
            clearPseudoCaptures();

            PseudoQueenPromotionCapture.Clear();
            PseudoUnderPromotionCapture.Clear();
            //PseudoEPCapture.Clear();        // Not needed for Swaps

            PseudoBadCaptures.Clear();
            PseudoGoodCaptures.Clear();
        }
Exemplo n.º 2
0
        protected void clearPseudoMaterialMoveLists(List <Move> moves)
        {
            moves.Clear();
            clearPseudoCaptures();

            PseudoEPCapture.Clear();
            PseudoQueenPromotion.Clear();
            PseudoUnderPromotion.Clear();
            PseudoQueenPromotionCapture.Clear();
            PseudoUnderPromotionCapture.Clear();

            PseudoCaptures.Clear();
        }
Exemplo n.º 3
0
        //
        //[Warning]Duplicate Moves can result in a number of strange, difficult to debug side-effects.
        //
        protected void clearPseudoMoveLists(List <Move> moves, Boolean bSwap) // ~32 MHz
        {
            moves.Clear();
            clearPseudoCaptures();
            clearPseudoMoves();

            PseudoCastles.Clear();
            PseudoEPCapture.Clear();
            PseudoQueenPromotion.Clear();
            PseudoUnderPromotion.Clear();
            PseudoQueenPromotionCapture.Clear();
            PseudoUnderPromotionCapture.Clear();
            PseudoCaptures.Clear();

            if (bSwap)
            {
                PseudoBadCaptures.Clear();
                PseudoGoodCaptures.Clear();
            }
#if !UseMoveSort
            SiftedMoves.Clear();        // See sortMoves()
#endif
        }