Exemple #1
0
        public Deck CopyDeck(Deck deck)
        {
            var newDeck = new Deck();

            for (int i = 0; i < deck.cards.Length; i++)
            {
                newDeck.cards[i] = deck.cards[i].CopyCard(deck.cards[i]);
            }
            return newDeck;
        }
Exemple #2
0
 public Game(Player[] players, Deck deck, int[] blinds,Label PotLabel)
 {
     this.players = players;
     this.deck = deck;
     this.BigBlind = blinds[1];
     this.SmallBlind = blinds[0];
     this.PotLabel = PotLabel;
     CurrentStake = BigBlind;
     reRaiseValue = 2 * BigBlind;
     this.PlayersInGame = players.Length;
     this.tableCards = new Card[5];
 }
Exemple #3
0
 //public Form2(Deck deck)
 public Form2(Form1 form, int numOfCards, Card[] SelectedCards)
 {
     InitializeComponent();
     this.form = form;
     deck = form.deck;
     if (form.game != null)
     {
         deck = form.game.deck;
     }
     DrawCards();
     cardy = new Card[numOfCards];
     for (int i = 0; i < numOfCards; i++)
     {
         if (SelectedCards[i] != null)
         {
             cardy[i] = SelectedCards[i];
         }
     }
     labels = new Label[] { label1, label2, label3 };
 }