public RobotRat(int rows, int cols) { Console.Clear(); _floor = new char[rows, cols]; _current_row = 10; _current_col = 10; _previous_row = _current_row; _previous_col = _current_col; _its_direction = Directions.NORTH; _its_pen_position = PenPositions.UP; InitializeFloor(); }
/// <summary> /// Sets the pen to the DOWN state. /// </summary> public void SetPenDown() { pen_position = PenPositions.DOWN; Console.WriteLine("The pen is " + pen_position); }
/// <summary> /// Sets the pen to the UP state. /// </summary> public void SetPenUp() { pen_position = PenPositions.UP; Console.WriteLine("The pen is " + pen_position); }
public void SetPenDown() { _its_pen_position = PenPositions.DOWN; //Console.WriteLine("Pen is "+ _its_pen_position); }
public void SetPenUp() { _its_pen_position = PenPositions.UP; //Console.WriteLine("Pen is "+ _its_pen_position); }