Exemplo n.º 1
0
        protected override string PostingActionFor(string playerName, PostingTypes postingType, double ratio)
        {
            if (postingType == PostingTypes.Ante)
            {
                // monzaaa: posts the ante 25
                return(string.Format("{0}: posts the ante {1}", playerName, ratio));
            }

            if (postingType == PostingTypes.SmallBlind)
            {
                // Gryko13: posts small blind $0.10
                return(string.Format("{0}: posts small blind ${1}", playerName, ratio));
            }

            if (postingType == PostingTypes.BigBlind)
            {
                // evgueni88: posts big blind $0.25
                return(string.Format("{0}: posts big blind ${1}", playerName, ratio));
            }

            throw new ArgumentException(postingType.ToString());
        }
Exemplo n.º 2
0
        protected override string PostingActionFor(string playerName, PostingTypes postingType, double ratio)
        {
            if (postingType == PostingTypes.Ante)
            {
                // Hero antes 50
                return(string.Format("{0} antes {1}", playerName, ratio));
            }

            if (postingType == PostingTypes.SmallBlind)
            {
                // enzonapoletano posts the small blind of $0.10
                return(string.Format("{0} posts the small blind of ${1}", playerName, ratio));
            }

            if (postingType == PostingTypes.BigBlind)
            {
                // Hero posts the big blind of $0.25
                return(string.Format("{0} posts the big blind of ${1}", playerName, ratio));
            }

            throw new ArgumentException(postingType.ToString());
        }