Пример #1
0
        public MoveCommand ReadCommand()
        {
            string line = _view.ReadLine();

            string[] details = line.Split(' ');
            return(new MoveCommand(CoordinateMap.GetDirection(details[0]), int.Parse(details[1])));
        }
Пример #2
0
 public MoveCommand ReadDirection(string direction)
 {
     return(new MoveCommand(CoordinateMap.GetDirection(direction[0].ToString()), int.Parse(direction[1].ToString())));
 }