mdnewman007
Member
- Joined
- Apr 28, 2006
- Messages
- 9
- Programming Experience
- 1-3
I am playing with a simple poker program "concept" to better understand vb.net and help on the path to my MCAD... I am having problems defining values to be different from one another.
When the cards are created, they are created from a structure object, with a random string for the number/face equivalence and a random suit. I can generate 9 cards (to simulate a player and dealer dealt cards, then a flop, turn, river situation.
The problem comes when two identical cards come into play... as there is not such a scenario in a deck of cards. I can not seem to figure out how to loop through the cards as they are created to declare the values for the cards(8) array (all the cards), as different values.
Anyone know how to loop through the values as they are declared so at the end of the variable definition, all the values of the cards in the array are different???
Below it is the length of code.
When the cards are created, they are created from a structure object, with a random string for the number/face equivalence and a random suit. I can generate 9 cards (to simulate a player and dealer dealt cards, then a flop, turn, river situation.
The problem comes when two identical cards come into play... as there is not such a scenario in a deck of cards. I can not seem to figure out how to loop through the cards as they are created to declare the values for the cards(8) array (all the cards), as different values.
Anyone know how to loop through the values as they are declared so at the end of the variable definition, all the values of the cards in the array are different???
Below it is the length of code.
Last edited: