Пример #1
0
void computer_turn() {

    int move = 0;

    Timer t("calculating");
    if (WORLD_SIZE < 2) {
        move = solve_local(state, DEPTH);
    } else {
        move = solve_remote(state, DEPTH, 0.35 * DEPTH, comm);
    }
    t.end(true);

    state.play_column(COMPUTER, move);
}
Пример #2
0
void SequentialSolver::correct(vec& res,
                               const system_type& sys,
                               const vec& rhs,
                               real /*damping*/ ) const {
    solve_local(res, sys, rhs, true );
}
Пример #3
0
void SequentialSolver::solve(vec& res,
                             const system_type& sys,
                             const vec& rhs) const {
    solve_local(res, sys, rhs, false );
}