I need to be able to have the user select cards.
How do I go about making an array of a deck of 52 cards in visual basic 2005?
Ok...so what do you want?
Dim cards(52) as String, done(52) as Boolean
For counter as Integer = 1 to 52
cards(counter) = counter
Next
You will have to do a loop through all of the cominations, (flush, strait ect ect).
Put the selected cards in an array, use a array.sort, then a For...Next loop to test the user array (selected cards), with the controlled array(cards to be tested).
If the user selects the card, have the boolean = True
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment