namespace Analizator9000 { /// /// Matchpoint scoring method /// class MaxScorer : BaseScorer { /// /// Scoring method for matchpoints /// /// Score to calculate the outcome /// Score to compare to /// 2 matchpoints for a better score, no matchpoints for worse, 1 if scores are the same override protected double getResultFromScores(long score1, long score2) { return score1 > score2 ? 2.0 : (score1 < score2 ? 0.0 : 1.0); } /// /// Averaging method for matchpoints /// /// Number of scores in the traveller /// Maximum matchpoint score (2 * (n - 1)) protected override double getDivisorFromScoreCount(int scoreCount) { return 2.0 * (scoreCount - 1); } } }