projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
db96228
)
Fix pretty printing of bitboards for debugging
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 30 Apr 2019 20:13:32 +0000 (22:13 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 30 Apr 2019 20:13:32 +0000 (22:13 +0200)
No functional change.
src/bitboard.cpp
patch
|
blob
|
history
diff --git
a/src/bitboard.cpp
b/src/bitboard.cpp
index
1958bea
..
40c038f
100644
(file)
--- 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;