import { store } from "@/store";
import Worker from 'worker-loader!@/playCompMove';
+
+// TODO: simplify, just "game" and "gameInfo" prop (fen+mode+vname may change at the same time)
+
+
export default {
name: 'my-computer-game',
components: {
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();
}