+ // TODO: do not process if game is over (check score ?)
+ processMove: function(move) {
+ // Send the move to web worker (including his own moves)
+ 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.playComputerMove();
+ }
+ },