X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=4e79a8fa33b878bfba50f02230f6b03aab79e087;hb=b196af4dcdbd692c9165b65fe5f1204cb48ca56b;hp=b006cff248fef882e4c4901ced0911b722009bcf;hpb=391e176274ecf39ea76550f443ae302687eeaf71;p=stockfish diff --git a/src/position.h b/src/position.h index b006cff2..4e79a8fa 100644 --- a/src/position.h +++ b/src/position.h @@ -50,9 +50,6 @@ //// Constants //// -/// FEN string for the initial position -const std::string StartPositionFEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; - /// Maximum number of plies per game (220 should be enough, because the /// maximum search depth is 100, and during position setup we reset the /// move counter for every non-reversible move). @@ -275,6 +272,7 @@ public: // Other properties of the position bool opposite_colored_bishops() const; bool has_pawn_on_7th(Color c) const; + bool is_chess960() const; // Current thread ID searching on the position int thread() const; @@ -338,6 +336,7 @@ private: int castleRightsMask[64]; StateInfo startState; File initialKFile, initialKRFile, initialQRFile; + bool isChess960; int startPosPlyCounter; int threadID; StateInfo* st; @@ -558,6 +557,11 @@ inline bool Position::has_pawn_on_7th(Color c) const { return pieces(PAWN, c) & relative_rank_bb(c, RANK_7); } +inline bool Position::is_chess960() const { + + return isChess960; +} + inline bool Position::move_is_capture(Move m) const { // Move must not be MOVE_NONE !