Hi. Im trying to write a simple deck of cards program. I am having difficulty in expressing my integer deck into a printable form. The deck is generated as this: 00102030405060708090100110120011121314151617181911011111210212223242526272829210211212203132333435363738393103113123 The leading numbers assign to suits and the following number assign to card rank. Basically how can I convert this to print in the form: Card 1: Ace of spades Card 2: 2 of spades Card 3: 3 of spades etc; Could I use if statements and BREAKS to change the ints into strings? Perhaps a char value for suit would be better.. Any suggestions? Any help would be …

Member Avatar
Member Avatar
+0 forum 7

Im trying to create a deck of cards using enums. I already have my enum declared, but I'm stuck in how exactly to create the deck of cards using a boolean array. So far i tried to initialize my constructor, but I don't know what direction to take now. Any help would be greatly appreciated it. Thank you. package Cards; //Class to represent a standard Deck of 52 Playing-Cards // The following functionality is provided // Default Constructor - creates a complete deck of cards // shuffle() - collects all 52 cards into the deck // deal() - returns a …

Member Avatar
Member Avatar
+0 forum 6

The End.