+ const playMove = () => {
+ if (!Array.isArray(move_s)) this.play(move_s);
+ else this.$refs["board"].choices = move_s;
+ }
+ if ("ontouchstart" in window) {
+ // Touch screen (smartphone): require confirmation
+ if (this.touchLastClick == square) playMove();
+ this.touchLastClick = square;
+ }
+ else playMove();