build/ludorum.js
/** Heuristic players work by evaluating the moves of the `player` in the given `game` state. If
	the game state is contingent, then all possible scenarios are evaluated and aggregated. The 
	result of `evaluatedMoves` is a sequence of pairs `[move, evaluation]`, or a future for such 
	sequence if the evaluation function is asynchronous.
	*/
Heuristic players work by evaluating the moves of the `player` in the given `game` state. If
the game state is contingent, then all possible scenarios are evaluated and aggregated. The
result of `evaluatedMoves` is a sequence of pairs `[move, evaluation]`, or a future for such
sequence if the evaluation function is asynchronous.
Heuristic players work by evaluating the moves of the ` player ` in the given ` game ` state . If the game state is contingent then all possible scenarios are evaluated and aggregated . The result of ` evaluatedMoves ` is a sequence of pairs ` [ move evaluation ] ` or a future for such sequence if the evaluation function is asynchronous .
function evaluatedMoves(game, player) {
		var heuristicPlayer = this,
			isAsync = false;
		raiseIf(game.isContingent, "Contingent game state has no moves!");
		var result = this.possibleMoves(game, player).map(function (move) {
				var e = heuristicPlayer.moveEvaluation(move, game, player);
				isAsync = isAsync || Future.__isFuture__(e);
				return Future.then(e, function (e) {
					return [move, e];
				});
			});
		return isAsync ? Future.all(result) : result;
	}
function evaluatedMoves ( game , player ) { var heuristicPlayer = this , isAsync = false ; raiseIf ( game . isContingent , "Contingent game state has no moves!" ) ; var result = this . possibleMoves ( game , player ) . map ( function ( move ) { var e = heuristicPlayer . moveEvaluation ( move , game , player ) ; isAsync = isAsync || Future . __isFuture__ ( e ) ; return Future . then ( e , function ( e ) { return [ move , e ] ; } ) ; } ) ; return isAsync ? Future . all ( result ) : result ; }
Heuristic players work by evaluating the moves of the `player` in the given `game` state.
Heuristic players work by evaluating the moves of the ` player ` in the given ` game ` state .
/** Every move is evaluated using `moveEvaluation`. This may be asynchronous and hence
		result in a `Future`.
		*/