src/games/Mutropas.js
/** The method `dealPieces` is used to split the pieces randomly between all players. Half the
	pieces go to each player, and one is left out.
	*/
The method `dealPieces` is used to split the pieces randomly between all players. Half the
pieces go to each player, and one is left out.
The method ` dealPieces ` is used to split the pieces randomly between all players . Half the pieces go to each player and one is left out .
function dealPieces(random) {
		random = random || Randomness.DEFAULT;
		var piecesPerPlayer = (this.allPieces.length / 2)|0,
			split1 = random.split(piecesPerPlayer, this.allPieces),
			split2 = random.split(piecesPerPlayer, split1[1]);
		return obj(this.players[0], split1[0], this.players[1], split2[0]);
	}
function dealPieces ( random ) { random = random || Randomness . DEFAULT ; var piecesPerPlayer = ( this . allPieces . length / 2 ) | 0 , split1 = random . split ( piecesPerPlayer , this . allPieces ) , split2 = random . split ( piecesPerPlayer , split1 [ 1 ] ) ; return obj ( this . players [ 0 ] , split1 [ 0 ] , this . players [ 1 ] , split2 [ 0 ] ) ; }
The method `dealPieces` is used to split the pieces randomly between all players.
The method ` dealPieces ` is used to split the pieces randomly between all players .