intficpy/travel.py
def travel(self, game):
        """
        The player travels through this connector.

        Determine if the player is able to pass, and if so, move the player.

        :param game: the current game
        :type game: IFPGame
        """
        try:
            barrier = self.barrierFunc(game)
        except:
            barrier = False
        if barrier:
            return False
        outer_loc = game.me.getOutermostLocation()
        if not self.can_pass:
            game.addTextToEvent("turn", self.cannot_pass_msg)
            return False
        if outer_loc == self.point_a:
            return self._travelEntrance(game, outer_loc, "a")
        if outer_loc == self.point_b:
            return self._travelEntrance(game, outer_loc, "b")

        The player travels through this connector.

        Determine if the player is able to pass, and if so, move the player.

        :param game: the current game
        :type game: IFPGame
        
The player travels through this connector.
Determine if the player is able to pass, and if so, move the player.
The player travels through this connector . Determine if the player is able to pass and if so move the player .
def travel(self, game):
        try:
            barrier = self.barrierFunc(game)
        except:
            barrier = False
        if barrier:
            return False
        outer_loc = game.me.getOutermostLocation()
        if not self.can_pass:
            game.addTextToEvent("turn", self.cannot_pass_msg)
            return False
        if outer_loc == self.point_a:
            return self._travelEntrance(game, outer_loc, "a")
        if outer_loc == self.point_b:
            return self._travelEntrance(game, outer_loc, "b")
def travel ( self , game ) : try : barrier = self . barrierFunc ( game ) except : barrier = False if barrier : return False outer_loc = game . me . getOutermostLocation ( ) if not self . can_pass : game . addTextToEvent ( "turn" , self . cannot_pass_msg ) return False if outer_loc == self . point_a : return self . _travelEntrance ( game , outer_loc , "a" ) if outer_loc == self . point_b : return self . _travelEntrance ( game , outer_loc , "b" )
The player travels through this connector.
The player travels through this connector .
"""
        The player travels through this connector.

        Determine if the player is able to pass, and if so, move the player.

        :param game: the current game
        :type game: IFPGame
        """
self
game
the current game
the current game