]> git.sesse.net Git - stockfish/blobdiff - src/bitboard.cpp
show coordinates when displaying board
[stockfish] / src / bitboard.cpp
index f650eef68627671dee2b3892e60f6d75b8cbff5b..3bb3ff8f8d5777ab0aa9ccf9e3928d3e94280051 100644 (file)
@@ -56,8 +56,9 @@ const std::string Bitboards::pretty(Bitboard b) {
       for (File f = FILE_A; f <= FILE_H; ++f)
           s += b & make_square(f, r) ? "| X " : "|   ";
 
-      s += "|\n+---+---+---+---+---+---+---+---+\n";
+      s += "| " + std::to_string(1 + r) + "\n+---+---+---+---+---+---+---+---+\n";
   }
+  s += "  a   b   c   d   e   f   g   h\n";
 
   return s;
 }