public override int Score(DiceRoll roll) { return(roll.AsFrequencyTable()[n] * n); }
protected bool Matches(DiceRoll roll) { return(roll.AsFrequencyTable().Frequencies.Any(f => f >= n)); }
private bool Matches(DiceRoll roll) { var freqs = new HashSet <int>(roll.AsFrequencyTable().Frequencies); return((freqs.Contains(2) && freqs.Contains(3)) || freqs.Contains(5)); }