Example #1
0
 public UnitTest1()
 {
     //
     // TODO: Add constructor logic here
     //
     this.baralho = new CardsLibrary.Deck();
 }
Example #2
0
 public UnitTest1()
 {
     //
     // TODO: Add constructor logic here
     //
     this.baralho = new CardsLibrary.Deck();
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 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();
 }