Esempio n. 1
0
        public IEnumerable <Hint> HintsToPaint(HintFlags ho, HintSelections hs, Func <Hint, bool> filter)
        {
            if (filter == null)
            {
                filter = (Hint h) => true;
            }
            bool first = true;

            foreach (var hint in AllHints(hs).Where(filter))
            {
                if (hint.IsIn(hs))
                {
                    yield return(hint);

                    if (first && (hint is ImpossibleHint || hint is ForcedMoveHint))
                    {
                        yield break; // Just paint one for that house
                    }
                }
                first = false;
            }
        }
Esempio n. 2
0
 public HintOptions()
 {
     Flags     = new HintFlags();
     Show      = new HintSelections(HintSelections.Level.Hard);
     AutoSolve = new HintSelections(HintSelections.Level.Easy);
 }