Fix pretty printing of bitboards for debugging
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 30 Apr 2019 20:13:32 +0000 (22:13 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 30 Apr 2019 20:13:32 +0000 (22:13 +0200)
No functional change.

src/bitboard.cpp

index 1958bea..40c038f 100644 (file)
@@ -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;