tests/lib/ludorum.js
/** A game of Mutropas ends when the players have no more pieces to play. The result is the 
	difference in scores.
	*/
A game of Mutropas ends when the players have no more pieces to play. The result is the
difference in scores.
A game of Mutropas ends when the players have no more pieces to play . The result is the difference in scores .
function result() {
		var players = this.players;
		if (this.playedPieces.length >= this.allPieces.length - 1) {
			var scores = this.scores();
			return this.zerosumResult(scores[players[0]] - scores[players[1]], players[0]);
		} else {
			return null;
		}
	}
function result ( ) { var players = this . players ; if ( this . playedPieces . length >= this . allPieces . length - 1 ) { var scores = this . scores ( ) ; return this . zerosumResult ( scores [ players [ 0 ] ] - scores [ players [ 1 ] ] , players [ 0 ] ) ; } else { return null ; } }
A game of Mutropas ends when the players have no more pieces to play.
A game of Mutropas ends when the players have no more pieces to play .