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; } }
public HintOptions() { Flags = new HintFlags(); Show = new HintSelections(HintSelections.Level.Hard); AutoSolve = new HintSelections(HintSelections.Level.Easy); }