public FormattedInput ParseInput() { TreeSlope slope = new TreeSlope(this.RawInput.Count); foreach (string line in this.RawInput) { slope.AddLine( line.Select(lineChar => TerrainCharMapping.ConvertFrom(lineChar)).ToArray() ); } this.TerrainFromInput = slope.CompleteSetup(); return(this); }
public Solution2(TreeSlope terrainFromInput) : base(terrainFromInput) { }
public Solution1(TreeSlope terrainFromInput) { this._skier = new SkierOnSlope(terrainFromInput); }