protected void clearPseudoMaterialMoveLists(List <Move> moves) { moves.Clear(); clearPseudoCaptures(); PseudoEPCapture.Clear(); PseudoQueenPromotion.Clear(); PseudoUnderPromotion.Clear(); PseudoQueenPromotionCapture.Clear(); PseudoUnderPromotionCapture.Clear(); PseudoCaptures.Clear(); }
// //[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 }