public void dealNextHand() { gameDeck.shuffleDeck(); //shuffle the deck board.clearCommunityCards(); clsSeat[] seatArray = new clsSeat[6] { seat1, seat2, seat3, seat4, seat5, seat6 }; //deal out first card to each player for (int i = 0; i < 6; i++) //array size of 6, therefore i < 6 for count control { seatArray[i].Hand.Card1 = gameDeck.deck[gameDeck.CurrentCard]; gameDeck.moveToNextCard(); } //deal out second card to each player for (int i = 0; i < 6; i++) { seatArray[i].Hand.Card2 = gameDeck.deck[gameDeck.CurrentCard]; gameDeck.moveToNextCard(); } //change the test labels to the cards for the player lblPlayerCard1.Text = gameDeck.getCardPip(seat1.Hand.Card1); lblPlayerCard2.Text = gameDeck.getCardPip(seat1.Hand.Card2); }//close dealNextHand() method
public frmPokerGame(clsCharacter c1, clsCharacter c2, clsCharacter c3, clsCharacter c4, clsCharacter c5, clsCharacter c6, int startingMoney, int smallBlind, int bigBlind, Color bc, Color fc) { InitializeComponent(); int initialBet = bigBlind; seat1 = new clsSeat(1, startingMoney, initialBet, c1); seat2 = new clsSeat(2, startingMoney, initialBet, c2); seat3 = new clsSeat(3, startingMoney, initialBet, c3); seat4 = new clsSeat(4, startingMoney, initialBet, c4); seat5 = new clsSeat(5, startingMoney, initialBet, c5); seat6 = new clsSeat(6, startingMoney, initialBet, c6); this.BackColor = bc; this.ForeColor = fc; }
public frmHandEvalTest(clsCharacter c1) { InitializeComponent(); testSeat = new clsSeat(1, 1000, 10, c1); }