Number of Valid Move Combinations On Chessboard

Given piece types and their starting positions, find the number of ways to place pieces on an 8x8 chessboard without pieces attacking each other.

Examples
Input: [["rook"],[[1,1]]]
Output: 15
Hints

Number of Valid Move Combinations On Chessboard

Given piece types and their starting positions, find the number of ways to place pieces on an 8x8 chessboard without pieces attacking each other.