Implement S-Chess
[capablanca.git] / lasker-2.2.3 / src / gamedb_old.c
index 15b947e..dd435b4 100644 (file)
@@ -319,6 +319,10 @@ static void ReadOneV1Move(FILE * fp, struct move_t *m)
       m->algString[i++] = '1' + m->toRank;
       m->algString[i] = '\0';
     }
+    if (m->piecePromotionTo != 0) { // must be Shogi promotion
+       strcat(m->algString, "=+");
+      m->piecePromotionTo |= m->color;
+    }
   }
   if (m->algString[0] != 'O')
     sprintf(m->moveString, "%c/%c%d-%c%d", PieceChar, 'a' + m->fromFile,