Skip to content

Commit a87d311

Browse files
committed
Apply clang-format
1 parent 3deff9f commit a87d311

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

search.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,18 @@ Value doSearch(Board &board, int depth, Value alpha, Value beta,
105105
return board.checkers() ? -MATE(ply) : 0;
106106
}
107107
movepick::orderMoves(board, moves, preferred, ply);
108-
if (bool useNMP=depth>=3 && !board.checkers() && ply>0){
109-
int R=2+depth/6;
108+
if (bool useNMP = depth >= 3 && !board.checkers() && ply > 0) {
109+
int R = 2 + depth / 6;
110110
board.doNullMove();
111-
Value score=doSearch(board, depth-1-R, -beta, -beta+1, session, ply+1);
111+
Value score =
112+
doSearch(board, depth - 1 - R, -beta, -beta + 1, session, ply + 1);
112113

113114
if (score == VALUE_NONE)
114115
return VALUE_NONE;
115-
score=-score;
116+
score = -score;
116117
board.undoMove();
117-
if (score>=beta) return beta;
118+
if (score >= beta)
119+
return beta;
118120
}
119121
for (Move move : moves) {
120122
board.doMove(move);

0 commit comments

Comments
 (0)