예제 #1
0
 public bool IsLessThan(Pokéset other)
 {
     if (Length() < other.Length())
     {
         return(true);
     }
     if (Length() == other.Length())
     {
         return(TotalLength() < other.TotalLength());
     }
     return(false);
 }
예제 #2
0
 private static bool CanAddOneMore(Pokéset newSet)
 {
     return(newSet.Length() + 1 == minPokéset.Length() && newSet.TotalLength() + newSet.MissingCharCount() <= minPokéset.TotalLength());
 }
예제 #3
0
 static bool CanAddTwoMore(Pokéset set)
 {
     return(set.Length() + 1 < minPokéset.Length());
 }