def flee(self, tile):
        """Moves the player randomly to an adjacent tile"""
        available_moves = tile.adjacent_moves()
        r = random.randint(0, 1 - len(available_moves))
        self.do_action(available_moves[r])
dataset/ETHPy150Open phillipjohnson/text-adventure-tut/adventuretutorial/player.py/Player.flee/swapped operands of `-`