mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-23 05:07:14 +00:00
Minimal support for FRC in the data generator. (#4049)
Allows UCI_Chess960 to be true during data generation. If UCI_Chess960 is true then strips castling rights from all saved positions and skips saving positions with castling move. UCI_Chess960 is respected in transforms.
This commit is contained in:
@@ -103,7 +103,7 @@ namespace Stockfish::Tools
|
||||
filtered_size_fen++;
|
||||
}
|
||||
else {
|
||||
tpos.sfen_pack(p.sfen);
|
||||
tpos.sfen_pack(p.sfen, false);
|
||||
}
|
||||
}
|
||||
else if (token == "move") {
|
||||
@@ -337,7 +337,7 @@ namespace Stockfish::Tools
|
||||
|
||||
StateInfo si;
|
||||
pos.set(str_fen, false, &si, th);
|
||||
pos.sfen_pack(psv.sfen);
|
||||
pos.sfen_pack(psv.sfen, false);
|
||||
}
|
||||
|
||||
#if defined(DEBUG_CONVERT_BIN_FROM_PGN_EXTRACT)
|
||||
@@ -478,7 +478,7 @@ namespace Stockfish::Tools
|
||||
{
|
||||
if (fs.read((char*)&p, sizeof(PackedSfenValue))) {
|
||||
StateInfo si;
|
||||
tpos.set_from_packed_sfen(p.sfen, &si, th);
|
||||
tpos.set_from_packed_sfen(p.sfen, &si, th, false);
|
||||
|
||||
// write as plain text
|
||||
ofs << "fen " << tpos.fen() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user