mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
show coordinates when displaying board
closes https://github.com/official-stockfish/Stockfish/pull/2723 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
1c65310c0e
commit
d0cb9b286f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user