diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-20 10:41:26 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-20 10:41:26 +0200 |
| commit | fa53cfa52d92d9306cd6f8bd227147ab0d4c2611 (patch) | |
| tree | 9e12a2ffeca15804acb1a2bf53f8b721d1b997c5 /src/misc.cpp | |
| parent | d10a05eb92423777c6ff32edd14a1bea32214801 (diff) | |
refactor(hash): refactoring hash logic to be better
Diffstat (limited to 'src/misc.cpp')
| -rw-r--r-- | src/misc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index a69054b..b49c5c4 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -59,14 +59,15 @@ uint64_t MoveGenTestDivide(uint32_t depth, Game *g) { char toFile = static_cast<char>('a' + toPos.file); std::cout << fromFile << (fromPos.rank + 1) << toFile << (toPos.rank + 1); PieceType promo = getPromotionTypeFromMove(move); - if (promo == QUEEN) + if (promo == QUEEN) { std::cout << 'q'; - else if (promo == ROOK) + } else if (promo == ROOK) { std::cout << 'r'; - else if (promo == KNIGHT) + } else if (promo == KNIGHT) { std::cout << 'n'; - else if (promo == BISHOP) + } else if (promo == BISHOP) { std::cout << 'b'; + } std::cout << ": " << count << "\n"; total += count; } |
