game_solver

Function par_move_scores

source
pub fn par_move_scores<T: Game<Player = impl TwoPlayer> + Eq + Hash + Sync + Send + 'static>(
    game: &T,
) -> Vec<Result<(<T as Game>::Move, isize), <T as Game>::MoveError>>
where T::Move: Sync + Send, T::MoveError: Sync + Send,
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.

By default, this uses the cryptograpphically unsecure XxHash64 hasher. If you want to use your own hasher, use par_move_scores_with_hasher.

§Returns

A vector of tuples of the form (move, score).