From 999fed11ad853032be800573640858f4830885f8 Mon Sep 17 00:00:00 2001 From: Maciej Caderek Date: Thu, 24 Mar 2022 22:45:36 +0100 Subject: [PATCH] WIP --- src/player/Player.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/player/Player.ts b/src/player/Player.ts index 6cb38d5..1978f67 100644 --- a/src/player/Player.ts +++ b/src/player/Player.ts @@ -102,6 +102,9 @@ class Player { const position = this.getPosition(); + await this.board.frame(position, this.game.header); + this.board.render(); + if (this.ply > 0 && state.boardConfig.sounds) { if (position.mate) { sfx.snap.play(); @@ -113,9 +116,6 @@ class Player { sfx.move.play(); } } - - await this.board.frame(position, this.game.header); - this.board.render(); } async first() {