1 / 3

want to display the cards to the user

FOR MORE CLASSES VISIT<br>tutorialoutletdotcom <br><br>Sort the cards in the player and computer hands before displaying them.<br>We want to display the cards to the user sorted by Suit and by Rank. We are considering the<br>order of suits to be from high, to low; spades, hearts, diamonds, clubs in that order. To do this<br>just after your calls to create the hands, but before you display the cards, add these 2 calls:<br>

Kearsley
Télécharger la présentation

want to display the cards to the user

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EDUCATIONAL COURSESTUTORIALOUTLET

  2. want to display the cards to the user • FOR MORE CLASSES VISIT • tutorialoutletdotcom • Sort the cards in the player and computer hands before displaying them.We want to display the cards to the user sorted by Suit and by Rank. We are considering theorder of suits to be from high, to low; spades, hearts, diamonds, clubs in that order. To do thisjust after your calls to create the hands, but before you display the cards, add these 2 calls:SuperCardcomputerHand = myDeck.GetCards(howManyCards); // existing lineSuperCardplayersHand = myDeck.GetCards(howManyCards); // existing lineArray.Sort(computerHand); // add this line here

  3. EDUCATIONAL COURSES TUTORIALOUTLET

More Related