Exemplo n.º 1
0
        public double Evaluate(double scoreBeforeBonus, IEnumerable <PieceData> pieces)
        {
            var    bonus = m_bonusCalculator.Evaluate(pieces);
            double value = m_scoreBonusFunc.Invoke(scoreBeforeBonus, bonus);

            OnEvaluated?.Invoke(this, value);
            return(value);
        }
Exemplo n.º 2
0
 public double Evaluate(IEnumerable <PieceData> pieces)
 {
     return(m_multiply * m_scoreCalculator.Evaluate(pieces));
 }
Exemplo n.º 3
0
        public double Evaluate(double scoreBeforeBonus, IEnumerable <PieceData> pieces)
        {
            var bonus = m_bonusCalculator.Evaluate(pieces);

            return(m_scoreBonusFunc.Invoke(scoreBeforeBonus, bonus));
        }