public void SetUpInput() { Tuple <int, int> startPos = new Tuple <int, int>(0, 0); _mapper = new InstructionCalc(startPos, Direction.North); string stringRepo = Properties.Resources.input; string line; StringReader sr = new StringReader(stringRepo); line = sr.ReadLine(); _directions = line.Split(',') .Select(x => x.Trim()) .Where(x => !string.IsNullOrWhiteSpace(x)) .ToList(); }
public void SetUpInput() { Tuple <int, int> startPos = new Tuple <int, int>(0, 0); _mapper = new InstructionCalc(startPos, Direction.North); }