X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=fdbd2c3c2d2c1b91783dbd3cedcc5d4bd30e0265;hb=a06fc4ba49b535ba45d70ee7401c5d2e26faefa2;hp=dc15413f7c3eeef167c0c948afe3628a078f1a91;hpb=49dc04f91386f8af97994b9f8734a0cde9b3d4b0;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index dc15413f..fdbd2c3c 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -274,6 +274,9 @@ export default { fen = mv[mv.length-1].fen; } 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"); } }, @@ -522,9 +525,6 @@ export default { }; const afterMove = (smove, initurn) => { if (this.vr.turn != initurn) { - -console.log(smove); - // Turn has changed: move is complete if (!smove.fen) // NOTE: only FEN of last sub-move is required (=> setting it here) @@ -660,6 +660,7 @@ console.log(smove);