public UnitTest1() { // // TODO: Add constructor logic here // this.baralho = new CardsLibrary.Deck(); }
private void inicializarJogo() { this.baralho = new CardsLibrary.Deck(); this.lb_carta_comp.Text = ". . ."; this.lb_carta_jog.Text = ". . ."; this.lb_cartas_jogador.Text = "26"; this.lb_cartas_comp.Text = "26"; this.lb_pontuacao_jogador.Text = "0"; this.lb_pontuacao_comp.Text = "0"; this.baralho.shuffle(500); }
static void Main(string[] args) { CardsLibrary.Deck baralho = new CardsLibrary.Deck(); //baralho.shuffle(200); //baralho.cut(26); //baralho.getFistCard(); //baralho.getLastCard(); //baralho.moveFirstForTheLastPosition(); //baralho.moveLastForTheFirstPosition(); //baralho.discard(baralho.getFistCard()); Console.WriteLine("-------------<BARALHO>---------------"); foreach (CardsLibrary.Card card in baralho) Console.WriteLine("Naipe -> " + card.naipe + " Carta -> " + card.index.ToString()); Console.ReadLine(); }