boardDiv +=
"<img " +
"src='/images/pieces/" +
- vr.getPpath(board[i][j], null, null, orientation) +
+ vr.getPpath(board[i][j], args.color, args.score, orientation) +
V.IMAGE_EXTENSION + "' " +
"class='piece'/>";
}
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";