Ejemplo n.º 1
0
        public static ulong PseudomoveBitboard(int piece, int[] board)
        {
            PieceType pt = Util.GetPieceType(piece);

            switch (pt)
            {
            case PieceType.Pawn:
                return(PawnMoveGenerator.PseudomoveBitboard(piece, board));

            case PieceType.Night:
                return(KnightMoveGenerator.PseudomoveBitboard(piece));

            case PieceType.Bishop:
                return(BishopMoveGenerator.PseudomoveBitboard(piece));

            case PieceType.Rook:
                return(RookMoveGenerator.PseudomoveBitboard(piece));

            case PieceType.Queen:
                return(QueenMoveGenerator.PseudomoveBitboard(piece));

            case PieceType.King:
                return(KingMoveGenerator.PseudomoveBitboard(piece));

            default:
                break;
            }

            return(0);
        }
Ejemplo n.º 2
0
 public static ulong PseudomoveBitboard(int piece)
 {
     return(BishopMoveGenerator.PseudomoveBitboard(piece) | RookMoveGenerator.PseudomoveBitboard(piece));
 }