View Single Post
  #1 (permalink)  
Old November 14th, 2017, 01:17 PM
dravrilev dravrilev is offline
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2017
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 10 CardLibrary.cs

Hello guys,

While copying the code for the Deck.cs I've come across two problems I'd like very much for someone to clarify on:

1. In the ctr of Deck the line of code
Code:
 cards[suitVal * 13 + rankVal -1] = new Card((Suit) suitVal , ((Rank) rankVal);
I did not fully comprehend its meaning.

2. What is/are the value(s) stored in cards?

Thanks a lot
Avri
Reply With Quote