X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=9878039ee8a260c8484c3095d486b57e67acfabd;hb=691d6952114dd716ca66193a029f5e60be50888c;hp=df2e8af5944f915486f2d899e67fe0322bbc2e0f;hpb=0f0552a7e966246b9c81dda5e1ca2cb1fddd8961;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index df2e8af5..9878039e 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -490,12 +490,16 @@ export default { let self = this; const initurn = this.vr.turn; (function executeMove() { +console.log("execute move " + move.length); const smove = move[moveIdx++]; // NOTE: condition "smove.start.x >= 0" required for Dynamo, // because second move may be empty. if (animate && smove.start.x >= 0) { self.animateMove(smove, () => { playSubmove(smove); + +console.log(moveIdx + " " + move.length); + if (moveIdx < move.length) setTimeout(executeMove, 500); else afterMove(smove, initurn);