.card.smallpad.small-modal.text-center
label.modal-close(for="modalEog")
h3#eogMessage.section {{ endgameMessage }}
- Board(:vr="vr" :last-move="lastMove" :analyze="analyze" :user-color="mycolor"
- :orientation="orientation" :vname="vname" @play-move="play")
+ Board(:vr="vr" :last-move="lastMove" :analyze="analyze"
+ :user-color="gameInfo.mycolor" :orientation="orientation"
+ :vname="vname" @play-move="play")
.button-group
button(@click="() => play()") Play
button(@click="() => undo()") Undo
},
watch: {
// fenStart changes when a new game starts
- fenStart: function() {
+ "gameInfo.fenStart": function() {
// Reset all variables
this.endgameMessage = "";
this.orientation = this.gameInfo.mycolor || "w";
this.compWorker.postMessage(["newmove",move]);
// subTurn condition for Marseille (and Avalanche) rules
if ((!this.vr.subTurn || this.vr.subTurn <= 1)
- && (this.mode == "auto" || this.vr.turn != this.mycolor))
+ && (this.mode == "auto" || this.vr.turn != this.gameInfo.mycolor))
{
this.playComputerMove();
}