original_docstring: Grue flees from the player in a random direction
docstring: Grue flees from the player in a random direction
docstring_tokens: Grue flees from the player in a random direction
code: def flee(self):
          """Grue flees from the player in a random direction"""
          for direction in self.game_map.random_direction():
              new_room = self.game_map.move(self.room, direction)
              if new_room:
                  self.room = new_room
                  break
code_tokens: def flee ( self ) : for direction in self . game_map . random_direction ( ) : new_room = self . game_map . move ( self . room , direction ) if new_room : self . room = new_room break
short_docstring: Grue flees from the player in a random direction
short_docstring_tokens: Grue flees from the player in a random direction
comment: """Grue flees from the player in a random direction"""