void LoadTable() { for (int x = 0; x <= 7; x++) { _board[x, 1] = new Pieces.Pawn(Colours.Black, x, 1); _board[x, 6] = new Pieces.Pawn(Colours.White, x, 6); } _board[0, 0] = new Pieces.Rook(Colours.Black, 0, 0); _board[1, 0] = new Pieces.Knight(Colours.Black, 1, 0); _board[2, 0] = new Pieces.Bishop(Colours.Black, 2, 0); _board[3, 0] = new Pieces.Queen(Colours.Black, 3, 0); _board[4, 0] = new Pieces.King(Colours.Black, 4, 0); _board[5, 0] = new Pieces.Bishop(Colours.Black, 5, 0); _board[6, 0] = new Pieces.Knight(Colours.Black, 6, 0); _board[7, 0] = new Pieces.Rook(Colours.Black, 7, 0); _board[0, 7] = new Pieces.Rook(Colours.White, 0, 7); _board[1, 7] = new Pieces.Knight(Colours.White, 1, 7); _board[2, 7] = new Pieces.Bishop(Colours.White, 2, 7); _board[3, 7] = new Pieces.Queen(Colours.White, 3, 7); _board[4, 7] = new Pieces.King(Colours.White, 4, 7); _board[5, 7] = new Pieces.Bishop(Colours.White, 5, 7); _board[6, 7] = new Pieces.Knight(Colours.White, 6, 7); _board[7, 7] = new Pieces.Rook(Colours.White, 7, 7); }
public override bool IsMovePossible(IMove move) { return(Bishop.IsMovePossibleStatic(move) || Rook.IsMovePossibleStatic(move)); }