public void ParseInput(string line) { if (InitialPositionRegex.IsMatch(line)) { Robot robot = CreateRobot(); robot.ParsePosition(line); _robots.Add(robot); } else if (MoveRegex.IsMatch(line)) { _robot = _robots.Last(); _robot.ParseMove(line); Console.WriteLine(_robot.GetCurrentPosition()); } }