src/Match.js
/** `Match` objects are build with the [game's](Game.html) starting state and the players that
	participate. The players argument must be either an array of [`Player`](Player.html) objects or
	an object with a member for each of the game's players with a Player object as value.
	*/
`Match` objects are build with the [game's](Game.html) starting state and the players that
participate. The players argument must be either an array of [`Player`](Player.html) objects or
an object with a member for each of the game's players with a Player object as value.
` Match ` objects are build with the [ game ' s ] ( Game . html ) starting state and the players that participate . The players argument must be either an array of [ ` Player ` ] ( Player . html ) objects or an object with a member for each of the game ' s players with a Player object as value .
function Match(game, players) {
		this.game = game;
		this.players = Array.isArray(players) ? iterable(game.players).zip(players).toObject() : players;
		this.history = [ { state: game }];
		this.events = new Events({
			events: ['begin', 'next', 'end', 'quit']
		});
		for (var p in this.players) { 
			this.players[p] = this.players[p].participate(this, p) || this.players[p];
		}
	}
function Match ( game , players ) { this . game = game ; this . players = Array . isArray ( players ) ? iterable ( game . players ) . zip ( players ) . toObject ( ) : players ; this . history = [ { state : game } ] ; this . events = new Events ( { events : [ 'begin' , 'next' , 'end' , 'quit' ] } ) ; for ( var p in this . players ) { this . players [ p ] = this . players [ p ] . participate ( this , p ) || this . players [ p ] ; } }
`Match` objects are build with the [game's](Game.html) starting state and the players that
participate.
` Match ` objects are build with the [ game ' s ] ( Game . html ) starting state and the players that participate .
/** The match records the sequence of game states in `Match.history`.
		*/ // Participate the players.