From bec863cf806dc91c028a90a85492393154b64b83 Mon Sep 17 00:00:00 2001 From: Maciej Caderek Date: Fri, 1 Apr 2022 21:27:27 +0200 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 a88b11b..3b4c1ef 100644 --- a/src/player/Player.ts +++ b/src/player/Player.ts @@ -129,14 +129,14 @@ class Player { } } - if (position.end === 0) { + if (position.end === 0 && state.boardConfig.speech) { const result = this.game.header.Result; if (result) { this.speech.say( result === "1-0" - ? "White wins!" + ? "White won!" : result === "0-1" - ? "Black wins!" + ? "Black won!" : "Draw" ); }