X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=17b165b9afb6f9a4115afc03d0762e98076993b4;hb=7ffae17f85709e49672a0e98e136b66aea067b2c;hp=2eb30ca0d2a6d5536f3f4dc6d315bb9cd6d0de66;hpb=40cb0f076a62115af030c4524825d9ba73d61023;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index 2eb30ca0..17b165b9 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]; @@ -408,7 +410,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 +1340,5 @@ bool Position::pos_is_ok() const { return true; } + +} // namespace Stockfish