src/Player.js
/** The `playTo` method makes a match for the given `game` where all roles are played by this
	agent.
	*/
The `playTo` method makes a match for the given `game` where all roles are played by this
agent.
The ` playTo ` method makes a match for the given ` game ` where all roles are played by this agent .
function playTo(game) {
		var self = this,
			players = game.players.map(function (role) {
				return typeof self === 'function' ? new self() : self;
			});
		return new Match(game, players);
	}
function playTo ( game ) { var self = this , players = game . players . map ( function ( role ) { return typeof self === 'function' ? new self ( ) : self ; } ) ; return new Match ( game , players ) ; }
The `playTo` method makes a match for the given `game` where all roles are played by this
agent.
The ` playTo ` method makes a match for the given ` game ` where all roles are played by this agent .