protected override bool Test(ICollection <YakuValue> result, ITiles tiles, IGroups groups, YakuEnvironment env)
 {
     if (groups.Any(g => !g.Key.IsTerminal))
     {
         return(false);
     }
     result.Add(YakuValue.FromFullYaku(this, "清老头", 1));
     return(true);
 }
 protected override bool Test(ICollection <YakuValue> result, ITiles tiles, IGroups groups, YakuEnvironment env)
 {
     if (groups.Any(g => !g.IsTerminal))
     {
         return(false);
     }
     result.Add(YakuValue.FromFanValue(this, "混全带幺九", (env & YakuEnvironment.门前清) != 0 ? 2 : 1));
     return(true);
 }