how do I code this? Watch
The prerequisite for being able to code anything is to have a complete, thorough understanding of the thing that you're trying to code down to the smallest details.
A good way to get your head around this would be to start drawing out some ideas on paper and create a list of the things that you want your program to be able to do. If you do a Google search, you ought to be able to find websites which have a good breakdown of the rules, and maybe even other peoples' attempts to do something similar which you could use for inspiration.
Always consider the way a user is going to interact with your program - i.e. the data / screens they will see, and the data they will type in to the program, as well as the steps they'll take to interact with it. It often helps to draw some mock-up diagrams/pictures of how it'll look. This is helpful because it will inform the data structures you need in your program - in general, the ease or difficulty of writing your program can be heavily influenced the way you structure your data, and the kinds of data you choose to represent things from your game (For example, consider how you'll represent the Suit and Rank of your cards, and how you'll represent a deck or the cards in a player's hand).
Lastly, don't try to solve everything at once. Writing a program involves divide-and-conquer. When a problem seems too big, break it down into something small and managable which you can easily write on its own - for example, if part of your program needs to do anything with a list of cards, you might create a function or section of a UI which is simply able to display cards (or their representation) on a screen, or you may start with a simple check for a win/loss condition for a game. It tends to be much easier to tackle tiny pieces of the problem than to try solving everything at once..
Are you good with Classes and Functions?
Will this be using Images? (If so I'm useless)