build/ludorum.js
/** The active player can place a piece in any empty square in the board. The moves are indices
	in the board's string representation.
	*/
The active player can place a piece in any empty square in the board. The moves are indices
in the board's string representation.
The active player can place a piece in any empty square in the board . The moves are indices in the board ' s string representation .
function moves() {
		if (this.hasOwnProperty('__moves__')) {
			return this.__moves__;
		} else if (this.result()) {
			this.__moves__ = null;
		} else {
			var board = this.board;
			this.__moves__ = obj(this.activePlayer(),
				board.coordinates().filter(function (coord) {
					return board.isEmptySquare(coord);
				}).toArray()
			);
		}
		return this.__moves__;
	}
function moves ( ) { if ( this . hasOwnProperty ( '__moves__' ) ) { return this . __moves__ ; } else if ( this . result ( ) ) { this . __moves__ = null ; } else { var board = this . board ; this . __moves__ = obj ( this . activePlayer ( ) , board . coordinates ( ) . filter ( function ( coord ) { return board . isEmptySquare ( coord ) ; } ) . toArray ( ) ) ; } return this . __moves__ ; }
The active player can place a piece in any empty square in the board.
The active player can place a piece in any empty square in the board .