blueeyes53
Active member
- Joined
- May 2, 2006
- Messages
- 25
- Programming Experience
- Beginner
Hey there,
I want to use a Shuffle method, and a DealCard method which is in a class project named cards.
In frmMain I have a listbox, and a Shuffle button
In the Class module declare an array of structures.This array should contain elements each representing a card in the deck. The structure should have two members: one representing the card(Ace, 2, 3, 4,...), and a second member representing the suit of the card. In the New procedure, store the cards in the array.
The listbox should display each card in the deck after they have been shuffled.
To shuffle the cards, call the Randomize function to seed the random number generator.In random order, copy the contents of the first array to a second array.
Create the constructor for the class module to initialize the deck of cards.
Could anyone help me with all of this coding.
Thanks
I want to use a Shuffle method, and a DealCard method which is in a class project named cards.
In frmMain I have a listbox, and a Shuffle button
In the Class module declare an array of structures.This array should contain elements each representing a card in the deck. The structure should have two members: one representing the card(Ace, 2, 3, 4,...), and a second member representing the suit of the card. In the New procedure, store the cards in the array.
The listbox should display each card in the deck after they have been shuffled.
To shuffle the cards, call the Randomize function to seed the random number generator.In random order, copy the contents of the first array to a second array.
Create the constructor for the class module to initialize the deck of cards.
Could anyone help me with all of this coding.
Thanks