build/ludorum.js
/** A player wins when it moves its A piece to the opponent's first rank, and loses when its A 
	piece is captured by the opponent.
	*/
A player wins when it moves its A piece to the opponent's first rank, and loses when its A
piece is captured by the opponent.
A player wins when it moves its A piece to the opponent ' s first rank and loses when its A piece is captured by the opponent .
function result() {
		var board = this.board.string, player;
		for (var i = 0; i < 2; ++i) {
			player = this.players[i];
			if (board.match(this.__PLAYER_ENDGAME_RE__[player])) {
				return this.defeat(player); 
			}
		}
		return this.moves() ? null : this.defeat(this.activePlayer());
	}
function result ( ) { var board = this . board . string , player ; for ( var i = 0 ; i < 2 ; ++ i ) { player = this . players [ i ] ; if ( board . match ( this . __PLAYER_ENDGAME_RE__ [ player ] ) ) { return this . defeat ( player ) ; } } return this . moves ( ) ? null : this . defeat ( this . activePlayer ( ) ) ; }
A player wins when it moves its A piece to the opponent's first rank, and loses when its A
piece is captured by the opponent.
A player wins when it moves its A piece to the opponent ' s first rank and loses when its A piece is captured by the opponent .