public Game(byte NumberOfPlayers, int ante) //: this() { this.NumberOfPlayers = NumberOfPlayers; PoketHands = new PoketHand[NumberOfPlayers]; Hands = new Hand[NumberOfPlayers]; Deck = new Deck(); //Deck.Print(); for (byte i = 0; i < NumberOfPlayers; ++i) { PoketHands[i] = new PoketHand(Deck.Cards[i], Deck.Cards[i + NumberOfPlayers]); } Flop = new Flop(Deck.Cards[2 * NumberOfPlayers], Deck.Cards[2 * NumberOfPlayers + 1], Deck.Cards[2 * NumberOfPlayers + 2]); //Flop.Print(); for (byte i = 0; i < NumberOfPlayers; ++i) { Hands[i] = new Hand(PoketHands[i], Flop); } /*Turn = Deck.Cards[2 * NumberOfPlayers + 3]; * Turn.Print(" Turn : "); * River = Deck.Cards[2 * NumberOfPlayers + 4]; * River.Print(" River : ");*/ Console.WriteLine(); //PrintPoketHands(); //PrintBestPoketHandOnFlop(); }
public Hand(PoketHand h, Flop f) : this() { Init(); Cards[0] = h.Cards[0]; Cards[1] = h.Cards[1]; Cards[2] = f.Cards[0]; Cards[3] = f.Cards[1]; Cards[4] = f.Cards[2]; DetermineCombination(); }
public Hand(PoketHand h, Flop f, Card t, Card r) : this() { Init(); Card[] cards = new Card[7]; cards[0] = h.Cards[0]; cards[1] = h.Cards[1]; cards[2] = f.Cards[0]; cards[3] = f.Cards[1]; cards[4] = f.Cards[2]; cards[5] = t; cards[6] = r; DetermineCombination(); }
public PoketHand(PoketHand ph) { this = ph; }