+ const timeStart = Date.now();
+ const nbMoves = this.vr.moves.length; //using played moves to know if search finished
+ setTimeout(
+ () => {
+ const L = this.vr.moves.length;
+ if (nbMoves == L || !this.vr.moves[L-1].notation) //move search didn't finish
+ this.vr.shouldReturn = true;
+ }, 5000);