Need help with a card game in C.
First of all I have to create two data types. The first is "Card" using a struct to model a single card and using two seperate enum's for the suit and rank. The second data type is Card Deck which supports any number of packs of cards entered by the user(Must use dynamic memory allocation). Need CardDeck Operations such as shuffle, sorting, adding or removing cards, etc..
If i got this amount done, I think I would be able to do the actual game development myself. Any help is appreciated
c
What I have tried:
This is what I have so far..
#include <stdio.h>
struct Card
{
char suit;
char rank;
};
enum suit { Club, Spade, Heart, Diamond};
enum rank { Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King, Ace};