public PlayerApiModel() { this.QuitGame = false; this.CurrentlyPlaying = false; this.Funds = -1; this.PlayerId = Guid.NewGuid(); PlayerHand = new HandApiModel(); }
public List <HandApiModel> getFinalHands() { List <HandApiModel> playerHands = new List <HandApiModel>(); foreach (PlayerApiModel p in this.players) { HandApiModel h = p.PlayerHand; playerHands.Add(h); } playerHands.Add(dealer.PlayerHand); return(playerHands); }
public List <HandApiModel> getPlayerHands() { List <HandApiModel> playerHands = new List <HandApiModel>(); foreach (PlayerApiModel p in players) { HandApiModel h = p.PlayerHand; playerHands.Add(h); } return(playerHands); }