- this.postPlay(move);
- }
-
- postPlay(move) {
- const c = (!move.end.converted ? V.GetOppCol(this.turn) : this.turn);
- const piece = move.appear[0].p;
- if (piece == V.KING) {
- this.kingPos[c][0] = move.appear[0].x;
- this.kingPos[c][1] = move.appear[0].y;
- }
- super.updateCastleFlags(move, piece, c);