X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=0be3301a9e09467e9bc4970255f2e52c05696dcb;hp=c221c749e2fba989646170b9f62e68b038457e37;hb=ed72a1e9ba37a9fa2674da8f46bb0597a1721c2d;hpb=3e2591d83c285597a7400c79b61ab9dc38875163 diff --git a/src/position.cpp b/src/position.cpp index c221c749..0be3301a 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -84,7 +84,7 @@ PieceType min_attacker(const Bitboard*, Square, Bitboard, Bitboard&, Bitbo } // namespace -/// CheckInfo c'tor +/// CheckInfo constructor CheckInfo::CheckInfo(const Position& pos) { @@ -118,7 +118,7 @@ std::ostream& operator<<(std::ostream& os, const Position& pos) { } os << "\nFen: " << pos.fen() << "\nKey: " << std::hex << std::uppercase - << std::setfill('0') << std::setw(16) << pos.st->key << std::dec << "\nCheckers: "; + << std::setfill('0') << std::setw(16) << pos.key() << std::dec << "\nCheckers: "; for (Bitboard b = pos.checkers(); b; ) os << UCI::square(pop_lsb(&b)) << " ";