Skip to content

Commit

Permalink
Fix small style nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
gcp committed Mar 25, 2019
1 parent e14dbe1 commit 6cfb1e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/UCTNode.cpp
Expand Up @@ -86,7 +86,7 @@ bool UCTNode::create_children(Network & network,
m_net_eval = raw_netlist.winrate;
const auto to_move = state.board.get_to_move();
// our search functions evaluate from black's point of view
if (state.board.white_to_move()) {
if (to_move == FastBoard::WHITE) {
m_net_eval = 1.0f - m_net_eval;
}
eval = m_net_eval;
Expand Down
3 changes: 2 additions & 1 deletion src/UCTSearch.cpp
Expand Up @@ -464,7 +464,8 @@ int UCTSearch::get_best_move(passflag_t passflag) {
}
}
} else if (!cfg_dumbpass) {
const auto relative_score = (color == FastBoard::BLACK ? 1 : -1) * m_rootstate.final_score();
const auto relative_score =
(color == FastBoard::BLACK ? 1 : -1) * m_rootstate.final_score();
if (bestmove == FastBoard::PASS) {
// Either by forcing or coincidence passing is
// on top...check whether passing loses instantly
Expand Down

0 comments on commit 6cfb1e0

Please sign in to comment.