Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
 public PlayerRecord FindPlayerRecord(string playerName)
 {
     return(PlayerRecords.First(p => string.Equals(playerName, p.Name)));
 }