mirror of
https://gitlab.com/manzerbredes/chessarbiter.git
synced 2025-05-23 07:37:40 +00:00
Debug SANParser
This commit is contained in:
parent
5fdfda00a9
commit
f9ac11ad44
2 changed files with 12 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue