From: Benjamin Auder Date: Mon, 6 Apr 2020 13:20:48 +0000 (+0200) Subject: Some more traces... X-Git-Url: https://git.auder.net/variants/Cwda/current/doc/pieces/cp.svg?a=commitdiff_plain;h=b20f4bd2d6366bb099d2f95831e67e83a61fae96;p=vchess.git Some more traces... --- diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 228d9c4b..be582950 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -466,7 +466,7 @@ export default { this.lastMove = smove; // Condition is "!navigate" but we mean "!this.autoplay" if (!navigate) { - if (this.cursor < this.moves.length - 1) + IF (this.cursor < this.moves.length - 1) this.moves = this.moves.slice(0, this.cursor + 1); this.moves.push(smove); } @@ -490,6 +490,7 @@ export default { let self = this; const initurn = this.vr.turn; (function executeMove() { +console.log("execute move " + move.length); const smove = move[moveIdx++]; // NOTE: condition "smove.start.x >= 0" required for Dynamo, // because second move may be empty.