Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public Solution2(TreeSlope terrainFromInput) : base(terrainFromInput)
 {
 }
Esempio n. 3
0
 public Solution1(TreeSlope terrainFromInput)
 {
     this._skier = new SkierOnSlope(terrainFromInput);
 }