X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=639ef3f06e968d7249c55ff45748577a9e6cfefa;hp=e3fc93cc8e2ad7823e0b77d8ff4e04df82716e53;hb=6008f6538e9c3912c88e89d77ef3e3d3351a6e55;hpb=0c6ed5929cb875e1507569424ab13036c5214f9b diff --git a/src/bitboard.cpp b/src/bitboard.cpp index e3fc93cc..639ef3f0 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -23,6 +23,7 @@ #include "bitboard.h" #include "bitcount.h" +#include "misc.h" #include "rkiss.h" CACHE_LINE_ALIGNMENT @@ -137,6 +138,8 @@ Square msb(Bitboard b) { void Bitboards::print(Bitboard b) { + sync_cout; + for (Rank rank = RANK_8; rank >= RANK_1; rank--) { std::cout << "+---+---+---+---+---+---+---+---+" << '\n'; @@ -146,7 +149,7 @@ void Bitboards::print(Bitboard b) { std::cout << "|\n"; } - std::cout << "+---+---+---+---+---+---+---+---+" << std::endl; + std::cout << "+---+---+---+---+---+---+---+---+" << sync_endl; }