public Game(Random random) { Deck = new Deck(random); Player1 = new Hand(); Player2 = new Hand(); Rounds = 20; _bounty = new List<Card>(); }
public string ListPlayerHand(Hand player) { string result = ""; foreach (Card card in player.Cards) { result += String.Format(" {0}<br/>", card.ToString()); } return result; }
public string DisplayPlayerCardTotals(Hand player) { return String.Format("<b>Player 1: {0}</b><br/><b>Player 2: {1}</b>", Player1.Cards.Count, Player2.Cards.Count); }
private string rakeCards(Hand winner) { string result = ""; foreach (Card card in _bounty) { result += " " + card.ToString() + "<br/>"; winner.AddCard(card); } _bounty = new List<Card>(); return result; }