Hello. Brilliant forum by the way. Why doesn't this work please?
- public void InitializePack()
- {
- Card [] pack=new Card[52];
- for (int i = 0; i < 4; i++) {
- for (int j = 1; j < 14; j++) {
- pack[(i*13)+j-1] = new Card((Suits)i, (Values)j);
- }
- }
- foreach (Card c in pack)
- Console.WriteLine(c.Name);
- }
I've not included the rest of the code as I thought you'd see this one straight away.
Thanks very much!


Dharmraj ThakurPosted Feb 1, 2018, 4:16 AM
Nigel FosterPosted Feb 1, 2018, 3:19 AM