Home | About | Contact | Projects

Deck of cards with shuffler:

Created a deck of cards using linked list using random library and created a shuffler that shuffled the cards and returned a new deck of 52 cards that were shuffled and ready to be played with.

Functions Implemented:
ListNode *newList(void) // returns a head of a new empty list
ListNode *removeNode(ListNode * prev); // removes the node after prev
ListNode *insertNode(ListNode *prev, SomeDataType data)
// inserts a new node with data field data after prev
int length(ListNode *head) // number of elements in the list
void printList(ListNode *head) // print the data fields for the entire list
Platform: Program coded in C using terminal on Linux OS.