Debug SAN move parser

This commit is contained in:
Loic Guegan 2022-02-24 20:40:17 +01:00
parent 90050da015
commit 3812a74cda
2 changed files with 4 additions and 0 deletions

View file

@ -435,6 +435,7 @@ std::string ChessArbiter::ParseSAN(std::string SANMove) {
// Pawn moves
if (std::islower(SANMove[0])) {
piece = 'P';
hint=SANMove[0];
// Not a capture
if (SANMove[1] != 'x') {
dst = SANMove.substr(0, 2);