def example2_build_horizontal_exit(x, y, **kwargs):
 if (kwargs['iteration'] == 0):
  return
 west_room = kwargs['room_dict'][((x - 1), y)]
 east_room = kwargs['room_dict'][((x + 1), y)]
 west = create_object(exits.Exit, key='east', aliases=['e'], location=west_room, destination=east_room)
 east = create_object(exits.Exit, key='west', aliases=['w'], location=east_room, destination=west_room)
 kwargs['caller'].msg(((('Connected: ' + west_room.key) + ' & ') + east_room.key))

def example2_build_horizontal_exit ( x , y , ** kwargs ) : if ( kwargs [ 'iteration' ] == 0 ) : return west_room = kwargs [ 'room_dict' ] [ ( ( x - 1 ) , y ) ] east_room = kwargs [ 'room_dict' ] [ ( ( x + 1 ) , y ) ] west = create_object ( exits . Exit , key = 'east' , aliases = [ 'e' ] , location = west_room , destination = east_room ) east = create_object ( exits . Exit , key = 'west' , aliases = [ 'w' ] , location = east_room , destination = west_room ) kwargs [ 'caller' ] . msg ( ( ( ( 'Connected: ' + west_room . key ) + ' & ' ) + east_room . key ) )
creates two exits to and from the two rooms east and west .