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");
}
},
};
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)
<style lang="sass" scoped>
[type="checkbox"]#modalEog+div .card
min-height: 45px
+ max-width: 350px
#baseGame
width: 100%