// Parallel implementation of minimax using the Young Brothers Wait concept. Returns the recommended move. public static TMove ParallelYbw <TState, TMove>(TState node, int depth, ControlledThreadPool pool) where TState : IState <TMove> where TMove : IMove <TState> { if (depth == 0 || node.IsTerminal()) { return(default);
// Parallel implementation of minimax with alpha-beta pruning using the Young Brothers Wait concept. Returns // the recommended move. public static TMove ParallelYbw <TState, TMove>(TState node, int depth, ControlledThreadPool pool) where TState : IState <TMove> where TMove : IMove <TState> => ParallelYbw <TState, TMove>(node, depth, double.NegativeInfinity, double.PositiveInfinity, pool);