X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=a2ee64f81cc603e6e4a03dbbfbbc00afeb863aa6;hp=2eb30ca0d2a6d5536f3f4dc6d315bb9cd6d0de66;hb=699bae632f283746a3eee15c0950fcdbca8a355e;hpb=40cb0f076a62115af030c4524825d9ba73d61023 diff --git a/src/position.cpp b/src/position.cpp index 2eb30ca0..a2ee64f8 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -34,6 +34,8 @@ using std::string; +namespace Stockfish { + namespace Zobrist { Key psq[PIECE_NB][SQUARE_NB]; @@ -296,8 +298,6 @@ Position& Position::set(const string& fenStr, bool isChess960, StateInfo* si, Th st->accumulator.state[WHITE] = Eval::NNUE::INIT; st->accumulator.state[BLACK] = Eval::NNUE::INIT; - assert(pos_is_ok()); - return *this; } @@ -408,7 +408,7 @@ Position& Position::set(const string& code, Color c, StateInfo* si) { /// Position::fen() returns a FEN representation of the position. In case of /// Chess960 the Shredder-FEN notation is used. This is mainly a debugging function. -const string Position::fen() const { +string Position::fen() const { int emptyCnt; std::ostringstream ss; @@ -1338,3 +1338,5 @@ bool Position::pos_is_ok() const { return true; } + +} // namespace Stockfish