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); }
public double Evaluate(IEnumerable <PieceData> pieces) { return(m_multiply * m_scoreCalculator.Evaluate(pieces)); }
public double Evaluate(double scoreBeforeBonus, IEnumerable <PieceData> pieces) { var bonus = m_bonusCalculator.Evaluate(pieces); return(m_scoreBonusFunc.Invoke(scoreBeforeBonus, bonus)); }