build/ludorum.js
/** The next game state is calculated simply by swapping the contents of the empty square and
	the given position in the board.
	*/
The next game state is calculated simply by swapping the contents of the empty square and
the given position in the board.
The next game state is calculated simply by swapping the contents of the empty square and the given position in the board .
function next(move, haps, update) {
		raiseIf(haps, "Haps are not required (given ", haps, ")!");
		var nextBoard = this.board.swap(this.emptyCoord(), move.Player);
		if (update) {
			this.board = nextBoard;
			this.moveNumber++;
			return this;
		} else {
			return new this.constructor({ board: nextBoard, moveNumber: this.moveNumber + 1 });
		}
	}
function next ( move , haps , update ) { raiseIf ( haps , "Haps are not required (given " , haps , ")!" ) ; var nextBoard = this . board . swap ( this . emptyCoord ( ) , move . Player ) ; if ( update ) { this . board = nextBoard ; this . moveNumber ++ ; return this ; } else { return new this . constructor ( { board : nextBoard , moveNumber : this . moveNumber + 1 } ) ; } }
The next game state is calculated simply by swapping the contents of the empty square and
the given position in the board.
The next game state is calculated simply by swapping the contents of the empty square and the given position in the board .