From: Fabian Fichter Date: Tue, 30 Apr 2019 20:13:32 +0000 (+0200) Subject: Fix pretty printing of bitboards for debugging X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=a136cb394e977921b014de22ef1f8fe13b87e080;p=fairystockfish.git Fix pretty printing of bitboards for debugging No functional change. --- diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 1958bea..40c038f 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -337,14 +337,14 @@ namespace { const std::string Bitboards::pretty(Bitboard b) { - std::string s = "+---+---+---+---+---+---+---+---+\n"; + std::string s = "+---+---+---+---+---+---+---+---+---+---+---+---+\n"; for (Rank r = RANK_MAX; r >= RANK_1; --r) { for (File f = FILE_A; f <= FILE_MAX; ++f) s += b & make_square(f, r) ? "| X " : "| "; - s += "|\n+---+---+---+---+---+---+---+---+\n"; + s += "|\n+---+---+---+---+---+---+---+---+---+---+---+---+\n"; } return s;