X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=30533f7040a871a58abe0628aab7b800d5d04b87;hb=8aa314fa9fea7d308d877a528c40af23973f372d;hp=9878039ee8a260c8484c3095d486b57e67acfabd;hpb=691d6952114dd716ca66193a029f5e60be50888c;p=vchess.git 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) {