pub fn par_move_scores_with_hasher<T: Game<Player = impl TwoPlayer> + Eq + Hash + Sync + Send + 'static, S>(
game: &T,
) -> Vec<Result<(<T as Game>::Move, isize), <T as Game>::MoveError>>
Expand description
Parallelized version of move_scores
. (faster by a large margin)
This requires the rayon
feature to be enabled.
It uses rayon’s parallel iterators to evaluate the scores of each move in parallel.
This also allows you to pass in your own hasher, for transposition table optimization.
§Returns
A vector of tuples of the form (move, score)
.