build/ludorum.js
/** The `stateEvaluation(game, player)` calculates a number as the assessment of the given game 
	state for the given player. The base implementation returns the result for the player is the 
	game has results, else it returns the heuristic value for the state.
	*/
The `stateEvaluation(game, player)` calculates a number as the assessment of the given game
state for the given player. The base implementation returns the result for the player is the
game has results, else it returns the heuristic value for the state.
The ` stateEvaluation ( game player ) ` calculates a number as the assessment of the given game state for the given player . The base implementation returns the result for the player is the game has results else it returns the heuristic value for the state .
function stateEvaluation(game, player) {
		if (!game.isContingent) {
			var gameResult = game.result();
			return gameResult ? gameResult[player] : this.heuristic(game, player);
		} else {
			return game.expectedEvaluation(player, this.stateEvaluation.bind(this));
		}
	}
function stateEvaluation ( game , player ) { if ( ! game . isContingent ) { var gameResult = game . result ( ) ; return gameResult ? gameResult [ player ] : this . heuristic ( game , player ) ; } else { return game . expectedEvaluation ( player , this . stateEvaluation . bind ( this ) ) ; } }
The `stateEvaluation(game, player)` calculates a number as the assessment of the given game
state for the given player.
The ` stateEvaluation ( game player ) ` calculates a number as the assessment of the given game state for the given player .
/** Heuristics cannot be applied to contingent game states. Hence all posible haps are 
			explored, and when a non-contingent game state is reached the heuristic is called.
			*/