예제 #1
0
파일: 21.c 프로젝트: vinverso/21
//initializes the game with creation of a deck 
//and printing of the welcome message
card * initializeGame() {
	printf("\n");
	card * deckOfCardsPointer;
	deckOfCardsPointer = makeDeck();
	printWelcome();
	return deckOfCardsPointer;	
}
예제 #2
0
//-------------------------------------------------------------------
int main()
{
	//printf("~~~~~~~MAIN FUNCTION~~~~~~~\n");
	struct Node *head = makeDeck();
	printf("-------------------------------------------------------------------------------");
	//printf("\nTHE LENGTH OF THIS DECK IS: %d\n",length(head));
	printf("Here is an ordered Deck: \n");
	printList(head);
	printf("Here is a shufled Deck: \n");
	struct Node *shuffledHead = randomShuffle(head);
	printList(shuffledHead);
}