2D Deck of Cards

Hello, I am drawing a blank on a proper approach to what I am trying to accomplish.

To make a normal deck of cards I would do this:
public static new string[ ] suits = new string [ ] { “C”, “D”, “H”, “S” };
public static new string[ ] values = new string [ ] { “A”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q”, “K” };

Then I loop through and create the deck and each suit has an A-K all good.

What if I have a deck where I have suits that are only 1,3,5,7,9 and another suit that is 1,2,3,5,6,7,9 and another suit 1,2,3,5,6,7,8,9,11 and then 1,2,3,4,5,6,7,8,9,10,11,12,13

I cant figure out a proper loop to even do this or can you even do it with a loop?

Thank you

I don’t really understand what you re asking. What it looks like you’re saying is you want:
A-C, 3-C, 5-C, 7-C, 9-C
A-D, 2-D, 3-D, 5-D, 6-D, 7-D, 9-D
A-H, 2-H, 3-H, 5-H, 6-H, 7-H, 8-H, 9-H, J-H
A-S thru K-S

1 = A, I’m assuming. In your array,
A is values[0] and C is suits[0]
3 would be values[2] and C is suits[0]

So you can set variables to pre-choose these values and store them.

string aceOfClubs;
//Inside Start()

aceOfClubs = values[0] + suits[0];

Now if you’re trying to build a whole deck then why not create an array for each suit?
string[ ] clubs = AC,2C,3C, etc…
string[ ] hearts = AH, 2H, 3H, etc…
string[ ] diamonds = AD,2D,3D, etc…
string spades = AS, 2S,3S, etc…