X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=d3afddeb4fb1df982f15604d0f5c70eafa905e23;hp=c915a1f9f3cf7e466eb2ed9d754cc75cdd22cbd1;hb=62ae6157a36e926c087b0303973e404a05e6de09;hpb=cf5d683408a2ef8a1c80be9bf7d6790a38b16277 diff --git a/src/position.cpp b/src/position.cpp index c915a1f9..d3afddeb 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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()) + " ")