Esempio n. 1
0
        public float EVShortTerm(int aCardNb)
        {
            float retval = 0;

            for (int i = 0; i < m_TimeFinish.Length; i++)
            {
                float rankPercentFinish = GetProportionByPosition(i);
                retval += rankPercentFinish * GameRules.GetRankPrice(i, aCardNb);
            }

            return(retval);
        }
Esempio n. 2
0
        public string ToString(Dictionary <char, int> aCamelCards)
        {
            string retval = String.Empty;

            foreach (var camelRank in m_CamelRanks)
            {
                char camel  = char.ToUpper(camelRank.Key);
                int  cardNb = aCamelCards.ContainsKey(camel) ? aCamelCards[camel] : 0;
                retval += string.Format("{0} {1} \tCarteST: {2} \n", camelRank.Value.EVShortTerm(cardNb).ToString("N2"), camelRank,
                                        GameRules.GetRankPrice(0, cardNb));
            }

            return(retval);
        }