Exemple #1
0
 public static bool MatchingSwap(Matchable first, Matchable second)
 {
     Swap(first, second);
     if (first.AnyMatch() || second.AnyMatch())
     {
         Swap(first, second);
         return(true);
     }
     else
     {
         Swap(first, second);
         return(false);
     }
 }
Exemple #2
0
 public bool MatchingSwap()
 {
     Swap();
     if (first.AnyMatch() || second.AnyMatch())
     {
         Swap();
         return(true);
     }
     else
     {
         Swap();
         return(false);
     }
 }