Interface with interface parameters in methods

I’m trying to make a card game prototype in unity, and so far i got classes for cards, decks and players using interfaces.
The deck interface looks something like this:

public interface IDeck
{
    void DrawCard(IPlayer player);

    void DrawCards(IPlayer player, int quantity);
}

And the player interface looks something like this:

public interface IPlayer
{
    void DrawCards(int quantity);
}

The problem is that when creating a new type of deck, i can’t use a class that inherits the IPlayer class.
Is it possible to use this method or do i need to rethink everything?

What do you mean you can’t use a class that inherits the IPlayer class. Use it for what? As a parameter? As the target of inheritance? Cast between IDeck and IPlayer? What are you referring to by “use”?

(tangent, it’s called the IPlayer interface. And you implement interfaces, not inherit them.)

What are you attempting to accomplish precisely with this method? What is your end goal?

Cause so far all we really know is the shape of these 2 interfaces. Which are legal interfaces.

But I have no idea what you’re actually attempting to do with these interfaces.