Skip to content

Commit 9900f1c

Browse files
committed
RF: Remove old code
1 parent f09893a commit 9900f1c

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

pelita/team.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)