src/players/MiniMaxPlayer.js
/** The `expectiMinimax(game, player, depth)` method is used when calculating the minimax value
	of a contingent game state. Basically returns the sum of all the minimax values weighted by the 
	probability of each possible next state. 
	*/
The `expectiMinimax(game, player, depth)` method is used when calculating the minimax value
of a contingent game state. Basically returns the sum of all the minimax values weighted by the
probability of each possible next state.
The ` expectiMinimax ( game player depth ) ` method is used when calculating the minimax value of a contingent game state . Basically returns the sum of all the minimax values weighted by the probability of each possible next state .
function expectiMinimax(game, player, depth, options) {
		if (!game.isContingent) {
			return this.minimax(game, player, depth, options);
		} else {
			var p = this;
			return game.expectedEvaluation(player, function (game, player) {
				return p.minimax(game, player, depth + 1, options);
			});
		}
	}
function expectiMinimax ( game , player , depth , options ) { if ( ! game . isContingent ) { return this . minimax ( game , player , depth , options ) ; } else { var p = this ; return game . expectedEvaluation ( player , function ( game , player ) { return p . minimax ( game , player , depth + 1 , options ) ; } ) ; } }
The `expectiMinimax(game, player, depth)` method is used when calculating the minimax value
of a contingent game state.
The ` expectiMinimax ( game player depth ) ` method is used when calculating the minimax value of a contingent game state .