X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=bd5daa6dcb0268be338f753750cdb945ecdc0faf;hp=8e7a5aa5d24de004688134b12dbbe75d9c902697;hb=7accf07c0b9cb3e2b932da5dd11b7d321745895e;hpb=33d95482182e459eb033de47a31f142880aa9afb diff --git a/src/position.cpp b/src/position.cpp index 8e7a5aa5..bd5daa6d 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -476,7 +476,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()) + " ") @@ -579,7 +579,6 @@ bool Position::legal(Move m) const { /// Position::pseudo_legal() takes a random move and tests whether the move is /// pseudo legal. It is used to validate moves from TT that can be corrupted /// due to SMP concurrent access or hash position key aliasing. -/// MOVE_NONE is represented as SQ_A1 to SQ_A1 which is never pseudo_legal. bool Position::pseudo_legal(const Move m) const {