Skip to content

Commit ef40cd4

Browse files
committed
Apply clang-format
1 parent 8a9cb8b commit ef40cd4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎score.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Score {
3939
int value;
4040
};
4141

42-
Score() : score(InternalUnits{ VALUE_ZERO }) {};
42+
Score() : score(InternalUnits{ VALUE_ZERO }){};
4343
Score(Value v);
4444

4545
template <typename T> bool is() const { return std::holds_alternative<T>(score); }

‎search.cpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ Value doSearch(
453453

454454
board.undoMove();
455455
movesSearched++;
456-
if (!isCapture && !givesCheck) quietsSearched.push_back(move);
456+
if (!isCapture && !givesCheck)
457+
quietsSearched.push_back(move);
457458
if (score > maxScore) {
458459
maxScore = score;
459460
bestMove = move;
@@ -471,7 +472,7 @@ Value doSearch(
471472
}
472473
} else if (!isCapture && depth > 0) {
473474
int malus = 300 * depth - 250;
474-
for (Move move_:quietsSearched)
475+
for (Move move_ : quietsSearched)
475476
session.historyHeuristic[(int)move_.from()][(int)move_.to()] =
476477
std::clamp(session.historyHeuristic[(int)move_.from()][(int)move_.to()] - malus, -16384, 16384);
477478
}

0 commit comments

Comments
 (0)