build/ludorum.js
/** The `decision(game, player)` selects randomly from the best evaluated moves.
	*/
The `decision(game, player)` selects randomly from the best evaluated moves.
The ` decision ( game player ) ` selects randomly from the best evaluated moves .
function decision(game, player) {
		var random = this.random;
		return Future.then(this.bestMoves(this.evaluatedMoves(game, player)), function (bestMoves) {
			raiseIf(!bestMoves || !bestMoves.length, "No moves where selected at ", game,
				" for player ", player, "!");
			return random.choice(bestMoves)[player];
		});
	}
function decision ( game , player ) { var random = this . random ; return Future . then ( this . bestMoves ( this . evaluatedMoves ( game , player ) ) , function ( bestMoves ) { raiseIf ( ! bestMoves || ! bestMoves . length , "No moves where selected at " , game , " for player " , player , "!" ) ; return random . choice ( bestMoves ) [ player ] ; } ) ; }
The `decision(game, player)` selects randomly from the best evaluated moves.
The ` decision ( game player ) ` selects randomly from the best evaluated moves .