From 8aa314fa9fea7d308d877a528c40af23973f372d Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Mon, 6 Apr 2020 15:34:03 +0200 Subject: [PATCH] Some more traces... (+ fix lastMove when exit analyze) --- client/src/components/BaseGame.vue | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- 2.44.0