src/players/UserInterfacePlayer.js
/** `perform(action, actionRole=undefined)` makes the given player perform the action if the 
	player has a `perform()` method and is included in this UI's players.
	*/
`perform(action, actionRole=undefined)` makes the given player perform the action if the
player has a `perform()` method and is included in this UI's players.
` perform ( action actionRole = undefined ) ` makes the given player perform the action if the player has a ` perform () ` method and is included in this UI ' s players .
function perform(action, actionRole) {
		iterable(this.match.players).forEach(function (pair) {
			var role = pair[0], player = pair[1];
			if (player instanceof UserInterfacePlayer && (!actionRole || player.role === actionRole)) {
				player.perform(action);
			}
		});
	}
function perform ( action , actionRole ) { iterable ( this . match . players ) . forEach ( function ( pair ) { var role = pair [ 0 ] , player = pair [ 1 ] ; if ( player instanceof UserInterfacePlayer && ( ! actionRole || player . role === actionRole ) ) { player . perform ( action ) ; } } ) ; }
`perform(action, actionRole=undefined)` makes the given player perform the action if the
player has a `perform()` method and is included in this UI's players.
` perform ( action actionRole = undefined ) ` makes the given player perform the action if the player has a ` perform () ` method and is included in this UI ' s players .