]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Initial commit for gRPC code.
[stockfish] / src / position.cpp
index c915a1f9f3cf7e466eb2ed9d754cc75cdd22cbd1..d3afddeb4fb1df982f15604d0f5c70eafa905e23 100644 (file)
@@ -318,8 +318,6 @@ Position& Position::set(const string& fenStr, bool isChess960, StateInfo* si, Th
   thisThread = th;
   set_state(st);
 
-  assert(pos_is_ok());
-
   return *this;
 }
 
@@ -476,7 +474,7 @@ const string Position::fen() const {
   if (can_castle(BLACK_OOO))
       ss << (chess960 ? char('a' + file_of(castling_rook_square(BLACK | QUEEN_SIDE))) : 'q');
 
-  if (!can_castle(WHITE) && !can_castle(BLACK))
+  if (!can_castle(ANY_CASTLING))
       ss << '-';
 
   ss << (ep_square() == SQ_NONE ? " - " : " " + UCI::square(ep_square()) + " ")