public NakedPairDisplayer(DomainFacade displayer, NakedPair nakedPair) : base(displayer, nakedPair) { _locKey = "naked-pair"; _pos1 = nakedPair.Positions.ElementAt(0); _pos2 = nakedPair.Positions.ElementAt(1); _value1 = nakedPair.Values.ElementAt(0); _value2 = nakedPair.Values.ElementAt(1); _houses = HintsHelper.GetHouses(_positions); _positionsInHouses = new List <Position>(); foreach (var house in _houses) { _positionsInHouses.AddRange(HintsHelper.GetPositionsInHouse(_pos1, house)); } _explanationSteps.AddRange(new Action[] { Explain1, Explain2, Explain3, Explain4, Explain5, }); }
private IEnumerable <House> GetHouses() { return(HintsHelper.GetHouses(_positions)); }