X-Git-Url: https://git.auder.net/images/pieces/current/gitweb.js?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FPacosako.js;h=e935240c69d9470ba680e5cda6eaa90b99c0618d;hb=3cf543959e84a8a5aa3f39f4f294790e2050b3b6;hp=430cfb0aec2eadd73a589d29dd157c3bb0e4b1d4;hpb=173f11dc3119c842a58daa9d1e0afc67eeb0e4e8;p=vchess.git diff --git a/client/src/variants/Pacosako.js b/client/src/variants/Pacosako.js index 430cfb0a..e935240c 100644 --- a/client/src/variants/Pacosako.js +++ b/client/src/variants/Pacosako.js @@ -120,9 +120,6 @@ export class PacosakoRules extends ChessRules { getPiece(i, j, color) { const p = this.board[i][j].charAt(1); - -console.log(p); - if (ChessRules.PIECES.includes(p)) return p; const c = this.board[i][j].charAt(0); // NOTE: this.turn == HACK, but should work... @@ -288,6 +285,7 @@ console.log(p); this.lastMoveEnd.push(Object.assign({}, move.end, { p: released })); } V.PlayOnBoard(this.board, move); + this.postPlay(move); } undo(move) { @@ -298,6 +296,7 @@ console.log(p); this.turn = V.GetOppCol(this.turn); this.movesCount--; } + this.postUndo(move); } getCurrentScore() {