コード例 #1
0
ファイル: YatzyEvaluator.cs プロジェクト: perl-easj/OOProg
        public int Evaluate(Dictionary <int, int> diceCountByFaceValue)
        {
            int score = EvaluatorHelpers.HighestScoreForOAKGroups(diceCountByFaceValue, new List <int> {
                diceCountByFaceValue.Count
            });

            return(score == 0 ? 0 : score + 100);
        }
コード例 #2
0
ファイル: OnePairEvaluator.cs プロジェクト: perl-easj/OOProg
 public int Evaluate(Dictionary <int, int> diceCountByFaceValue)
 {
     return(EvaluatorHelpers.HighestScoreForOAKGroups(diceCountByFaceValue, new List <int> {
         2
     }));
 }