Exemple #1
0
def minimax_serial(pos):
    (score, move) = _minimax_serial(pos.numpyify(),
                                    np.array(pos.wc).astype(np.uint8),
                                    np.array(pos.bc).astype(np.uint8), pos.ep,
                                    pos.kp, pos.score, 0, DEPTH)
    nodes = print_eval()
    return (score, move, nodes)
Exemple #2
0
def pvsplit(pos):
    (score, move) = _pvsplit(pos.numpyify(),
                             np.array(pos.wc).astype(np.uint8),
                             np.array(pos.bc).astype(np.uint8), pos.ep, pos.kp,
                             pos.score, 0, DEPTH, -1000000, 1000000,
                             NUM_THREADS)
    nodes = print_eval()
    return (score, move, nodes)
Exemple #3
0
def alpha_beta_top_level_parallel(pos):
    (score, move) = _alpha_beta_top_level_parallel(
        pos.numpyify(),
        np.array(pos.wc).astype(np.uint8),
        np.array(pos.bc).astype(np.uint8), pos.ep, pos.kp, pos.score, 0, DEPTH,
        NUM_THREADS, -100000, 100000)
    nodes = print_eval()
    return (score, move, nodes)
Exemple #4
0
def alpha_beta_serial(pos):
    (score, move) = _alpha_beta_serial(pos.numpyify(),
                                       np.array(pos.wc).astype(np.uint8),
                                       np.array(pos.bc).astype(np.uint8),
                                       pos.ep, pos.kp, pos.score, 0, DEPTH,
                                       -100000, 100000)
    nodes = print_eval()
    return (score, move, nodes)
Exemple #5
0
def minimax_top_level_parallel(pos):
    (score,
     move) = _minimax_top_level_parallel(pos.numpyify(),
                                         np.array(pos.wc).astype(np.uint8),
                                         np.array(pos.bc).astype(np.uint8),
                                         pos.ep, pos.kp, pos.score, 0, DEPTH,
                                         NUM_THREADS)
    nodes = print_eval()
    return (score, move, nodes)