mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Another attempt at fixing Chess960
Keep the isChess960 flag inside Position so that is copied with the Position, but esplicitly highlight the fact that a FEN string has not enough information to detect Chess960 in general case. To do this add a boolean argument isChess960 to from_fen() function so to self document this shortcoming of FEN notation. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -134,10 +134,10 @@ public:
|
||||
|
||||
// Constructors
|
||||
Position(const Position& pos, int threadID);
|
||||
Position(const std::string& fen, int threadID);
|
||||
Position(const std::string& fen, bool isChess960, int threadID);
|
||||
|
||||
// Text input/output
|
||||
void from_fen(const std::string& fen);
|
||||
void from_fen(const std::string& fen, bool isChess960);
|
||||
const std::string to_fen() const;
|
||||
void print(Move m = MOVE_NONE) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user