+ const firstCode = (color == 'w' ? 65 : 97);
+ // Generally, reserveCount == 1 (except for shadow piece)
+ const reserveCount = move.appear[0].c.charCodeAt() - firstCode + 1;
+ this.reserve[color][V.PAWN] -= reserveCount;
+ if (this.reserve[color][V.PAWN] == 0) this.reserve[color] = null;