- // Received a new move to play:
- "game.moveToPlay": function(newMove) {
- if (!!newMove) //if stop + launch new game, get undefined move
- this.play(newMove, "receive");
- },
- // ...Or to undo (corr game, move not validated)
- "game.moveToUndo": function(move) {
- if (!!move)
- this.undo(move);
- },