public void Deal(Player[] players, int dealer) { int player = dealer; for (int i = 0; i < 5; i++) { for (int j = 0; j < players.Length; j++) { player = NextPlayer(player, players.Length); players[player].SetCard(cards[top--], i); } } }
public Table(string name, int hStack, int vStack, int betSize) { players = new Player[2]; deck = new Deck(); hero = new Hero(name); villain = new Villain(); hero.ChipStack = hStack; villain.ChipStack = vStack; players[0] = hero; players[1] = villain; dealer = 0; curPlay = dealer; pot = 0; smallBet = betSize; betsThisRound = 0; }
public void DealDiscards(Player p, int[] discards) { for (int i = 0; i < discards.Length; i++) { p.SetCard(cards[top--], discards[i]); } }
public void ShowPlayer(Player p) { Console.WriteLine(p + ": " + p.ChipStack); }