p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Beginning C# 6.0 Programming with Visual Studio 2015 (http://p2p.wrox.com/book-beginning-c-6-0-programming-visual-studio-2015-798/)
-   -   Chapter 10 CardLibrary.cs (http://p2p.wrox.com/book-beginning-c-6-0-programming-visual-studio-2015/99678-chapter-10-cardlibrary-cs.html)

dravrilev November 14th, 2017 12: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

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

All times are GMT -4. The time now is 08:41 PM.

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