File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -614,33 +614,6 @@ def say(self, text):
614614 """ Print some text in the graphical interface. """
615615 self ._say = text
616616
617- # def get_direction(self, position):
618- # """ Return the direction needed to get to the given position.
619-
620- # Raises
621- # ======
622- # ValueError
623- # If the position cannot be reached by a legal move
624- # """
625- # direction = (position[0] - self.position[0], position[1] - self.position[1])
626- # if direction not in self.legal_directions:
627- # raise ValueError("Cannot reach position %s (would have been: %s)." % (position, direction))
628- # return direction
629-
630- # def get_position(self, direction):
631- # """ Return the position reached with the given direction
632-
633- # Raises
634- # ======
635- # ValueError
636- # If the direction is not legal.
637- # """
638- # if direction not in self.legal_directions:
639- # raise ValueError(f"Direction {direction} is not legal.")
640- # position = (direction[0] + self.position[0], direction[1] + self.position[1])
641- # return position
642-
643-
644617 def _repr_html_ (self ):
645618 """ Jupyter-friendly representation. """
646619 bot = self
You can’t perform that action at this time.
0 commit comments