p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning C# 6.0 Programming with Visual Studio 2015 (http://p2p.wrox.com/forumdisplay.php?f=798)
-   -   Chapter 10 CardLibrary.cs (http://p2p.wrox.com/showthread.php?t=99678)

dravrilev November 14th, 2017 01:17 PM

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


All times are GMT -4. The time now is 03:26 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.