id: my.id,
name: my.name,
tmpIds: {
- tmpId: { focus: true }
+ [tmpId]: { focus: true }
}
}
);
? this.repeat[fenObj] + 1
: 1;
if (this.repeat[fenObj] >= 3) {
- if (this.vr.loseOnRepetition())
+ if (this.vr.loseOnRepetition)
this.gameOver(moveCol == "w" ? "0-1" : "1-0", "Repetition");
else this.drawOffer = "threerep";
}
if (["all","byrow"].includes(V.ShowMoves)) {
this.curDiag = getDiagram({
position: position,
- orientation: V.CanFlip ? this.game.mycolor : "w"
+ orientation: V.CanFlip ? this.game.mycolor : "w",
+ color: this.game.mycolor,
+ score: "*"
});
document.querySelector("#confirmDiv > .card").style.width =
boardDiv.offsetWidth + "px";