Debug SANParser

This commit is contained in:
Loic Guegan 2022-12-27 11:13:49 +01:00
parent 5fdfda00a9
commit f9ac11ad44
2 changed files with 12 additions and 1 deletions

View file

@ -488,7 +488,12 @@ std::string ChessArbiter::ParseSAN(const std::string &SANMove) {
std::string current_src = move.substr(0, 2);
std::string current_dst = move.substr(2, 2);
if (current_dst == dst) {
src_candidates.push_back(current_src);
// Now ensure that move can be played
INIT_BACKUP();
if(Play(current_src+current_dst)){
src_candidates.push_back(current_src);
}
RESTORE_BACKUP();
}
}