playerIDs() -> [<integer>] , method of game

Return a list of player identifiers.

function enableAllToSwipe() {
    _.each(UB.game.playerIDs(), function(playerID) {
        UB.player(playerID).enableOutput("swipe")
    });
}

See all methods of the api.