Example #1
0
 public void Barajar()
 {
     for (int n = 0; n < NaipesEnGrupo.Count; n++)
     {
         int   k    = rnd.Next(n, NaipesEnGrupo.Count);
         Naipe temp = NaipesEnGrupo[n];
         NaipesEnGrupo[n] = NaipesEnGrupo[k];
         NaipesEnGrupo[k] = temp;
     }
 }
Example #2
0
 public void AnadirAt(int pos, Naipe card)
 {
     NaipesEnGrupo.Insert(pos, card);
 }
Example #3
0
 public void AnadirAbajo(Naipe card)
 {
     NaipesEnGrupo.Insert(0, card);
 }
Example #4
0
 public void AnadirArriba(Naipe card)
 {
     NaipesEnGrupo.Add(card);
 }