std::ostringstream ss;
if (move)
- ss << "\nMove is: " << (sideToMove == BLACK ? ".." : "")
+ ss << "\nMove: " << (sideToMove == BLACK ? ".." : "")
<< move_to_san(*const_cast<Position*>(this), move);
for (Square sq = SQ_A1; sq <= SQ_H8; sq++)
if (piece_on(sq) != NO_PIECE)
brd[513 - 68*rank_of(sq) + 4*file_of(sq)] = PieceToChar[piece_on(sq)];
- ss << brd << "\nFen is: " << fen() << "\nKey is: " << st->key;
+ ss << brd << "\nFen: " << fen() << "\nKey: " << st->key;
+
+ if (checkers())
+ {
+ ss << "\nCheckers: ";
+ for (Bitboard b = checkers(); b; )
+ ss << square_to_string(pop_lsb(&b)) << " ";
+ }
return ss.str();
}