build/ludorum.js
/** To get from one game state to the next, an active player's piece in the square indicated by 
	its move.
	*/
To get from one game state to the next, an active player's piece in the square indicated by
its move.
To get from one game state to the next an active player ' s piece in the square indicated by its move .
function next(moves, haps, update) {
		raiseIf(haps, "Haps are not required (given ", haps, ")!");
		var activePlayer = this.activePlayer(),
			playerIndex = this.players.indexOf(activePlayer),
			coord = moves[activePlayer],
			nextPlayer = (playerIndex + 1) % this.players.length,
			nextBoard = this.board.place(coord, playerIndex.toString(36));
		if (update) {
			this.activatePlayers(nextPlayer);
			this.board = nextBoard;
			return this;
		} else {
			return new this.constructor(nextPlayer, nextBoard);
		}
	}
function next ( moves , haps , update ) { raiseIf ( haps , "Haps are not required (given " , haps , ")!" ) ; var activePlayer = this . activePlayer ( ) , playerIndex = this . players . indexOf ( activePlayer ) , coord = moves [ activePlayer ] , nextPlayer = ( playerIndex + 1 ) % this . players . length , nextBoard = this . board . place ( coord , playerIndex . toString ( 36 ) ) ; if ( update ) { this . activatePlayers ( nextPlayer ) ; this . board = nextBoard ; return this ; } else { return new this . constructor ( nextPlayer , nextBoard ) ; } }
To get from one game state to the next, an active player's piece in the square indicated by
its move.
To get from one game state to the next an active player ' s piece in the square indicated by its move .