Esempio n. 1
0
        public int GetAvailableCaptureMoves(Span <Move> moves)
        {
            var movesCount = PawnOperator.GetAvailableCaptureMoves(this, moves, 0);

            movesCount = KnightOperator.GetAvailableCaptureMoves(this, moves, movesCount);
            movesCount = BishopOperator.GetAvailableCaptureMoves(this, moves, movesCount);
            movesCount = RookOperator.GetAvailableCaptureMoves(this, moves, movesCount);
            movesCount = QueenOperator.GetAvailableCaptureMoves(this, moves, movesCount);
            movesCount = KingOperator.GetAvailableCaptureMoves(this, moves, movesCount);

            return(movesCount);
        }