/// <summary> /// Test if all players have agreed on current stage /// </summary> /// <returns></returns> public bool StageSettled() { if (PlayerRecords.Any(p => !p.Folded && !p.Polled)) { return(false); } var chipsBet = PlayerRecords.First(p => !p.Folded).ChipsBet; return(PlayerRecords.Where(p => !p.Folded).All(p => p.ChipsBet == chipsBet)); }
public PlayerRecord FindPlayerRecord(string playerName) { return(PlayerRecords.First(p => string.Equals(playerName, p.Name))); }