Skip to content

Commit

Permalink
alpha beta bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluemer committed May 2, 2017
1 parent af5822f commit 8d88071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MinimaxSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ double MinimaxSearch::alphaBeta(bup &board, double alpha, double beta, int depth
bup result = board->result(move);
v = std::min(v, alphaBeta(result, alpha, beta, depth + 1));
if (v <= alpha) return v;
beta = std::max(beta, v);
beta = std::min(beta, v);
}
}

Expand Down

0 comments on commit 8d88071

Please sign in to comment.