示例#1
0
 public override int Score(DiceRoll roll)
 {
     return(roll.AsFrequencyTable()[n] * n);
 }
示例#2
0
 protected bool Matches(DiceRoll roll)
 {
     return(roll.AsFrequencyTable().Frequencies.Any(f => f >= n));
 }
示例#3
0
        private bool Matches(DiceRoll roll)
        {
            var freqs = new HashSet <int>(roll.AsFrequencyTable().Frequencies);

            return((freqs.Contains(2) && freqs.Contains(3)) || freqs.Contains(5));
        }