From: Benjamin Auder Date: Mon, 6 Apr 2020 13:34:03 +0000 (+0200) Subject: Some more traces... (+ fix lastMove when exit analyze) X-Git-Url: https://git.auder.net/doc/html/%7B%7B%20asset%28%27mixstore/images/current/git-logo.png?a=commitdiff_plain;h=8aa314fa9fea7d308d877a528c40af23973f372d;p=vchess.git Some more traces... (+ fix lastMove when exit analyze) --- diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 9878039e..30533f70 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -275,6 +275,8 @@ export default { } this.vr = new V(fen); this.incheck = this.vr.getCheckSquares(); + if (this.cursor >= 0) this.lastMove = this.moves[this.cursor]; + else this.lastMove = null; document.getElementById("analyzeBtn").classList.remove("active"); } }, @@ -492,6 +494,11 @@ export default { (function executeMove() { console.log("execute move " + move.length); const smove = move[moveIdx++]; + +console.log(smove); + console.log(animate + " " + smove.start.x); + + // NOTE: condition "smove.start.x >= 0" required for Dynamo, // because second move may be empty. if (animate && smove.start.x >= 0) {