]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Change advanced pawn push threshold
[stockfish] / src / position.cpp
index 2eb30ca0d2a6d5536f3f4dc6d315bb9cd6d0de66..17b165b9afb6f9a4115afc03d0762e98076993b4 100644 (file)
@@ -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