예제 #1
0
 public UnitTest1()
 {
     //
     // TODO: Add constructor logic here
     //
     this.baralho = new CardsLibrary.Deck();
 }
예제 #2
0
 public UnitTest1()
 {
     //
     // TODO: Add constructor logic here
     //
     this.baralho = new CardsLibrary.Deck();
 }
예제 #3
0
파일: Form1.cs 프로젝트: pds-unipampa/aula
 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);
 }
예제 #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);
 }
예제 #5
0
파일: Program.cs 프로젝트: pds2012/Cards
 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();
 }