Esempio n. 1
0
        private bool ProcessSuitHint(SuitHint hint)
        {
            var hintApplies = (suit == hint.Suit);

            foreach (var item in
                     from item in GetSuits()
                     let isHintedSuit = (item == hint.Suit)
                                        where hintApplies != isHintedSuit && !disprovenSuits.Contains(item)
                                        select item)
            {
                disprovenSuits.Add(item);
                PushUndoable(delegate()
                {
                    disprovenSuits.Remove(item);
                });
            }
            return(hintApplies);
        }
Esempio n. 2
0
 private bool ProcessSuitHint(SuitHint hint)
 {
     var hintApplies = (suit == hint.Suit);
      foreach (var item in
     from item in GetSuits()
     let isHintedSuit = (item == hint.Suit)
     where hintApplies != isHintedSuit && !disprovenSuits.Contains(item)
     select item)
      {
     disprovenSuits.Add(item);
     PushUndoable(delegate()
     {
        disprovenSuits.Remove(item);
     });
      }
      return hintApplies;
 }