5
I need to make a kind of "Mini-pife", but I’m not able to create the method to shuffle the cards, someone can help me?
public class Baralho
{
public Carta[] Cartas { get; private set; }
public Baralho()
{
this.Cartas = new Carta[52];
int c = 0;
for (int nIdx = 0; nIdx < 4; ++nIdx)
{
Naipe naipe = (Naipe)(nIdx + 1);
for (int vIdx = 0; vIdx < 13; ++vIdx)
{
Valor valor = (Valor)(vIdx + 1);
this.Cartas[c++] = new Carta()
{
Naipe = naipe,
Valor = valor
};
}
}
}