public void DealDiscards(Player p, int[] discards) { for (int i = 0; i < discards.Length; i++) { p.SetCard(cards[top--], discards[i]); } }
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() { players = new Player[2]; deck = new Deck(); hero = new Hero(); villain = new Villain(); players[0] = hero; players[1] = villain; dealer = 0; curPlay = dealer; pot = 0; smallBet = 2; betsThisRound = 0; }
public void ShowPlayer(Player p) { Console.WriteLine(p + ": " + p.ChipStack); }