X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=30533f7040a871a58abe0628aab7b800d5d04b87;hb=8aa314fa9fea7d308d877a528c40af23973f372d;hp=228d9c4be4ab17923a40080d974d09470c23a7d9;hpb=130cca8b28bbba4fe586f4ddad22808d2aa9a537;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 228d9c4b..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"); } }, @@ -490,7 +492,13 @@ export default { let self = this; const initurn = this.vr.turn; (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) {