This commit is contained in:
Maciej Caderek
2022-04-01 21:27:27 +02:00
parent 251fe05d28
commit bec863cf80

View File

@@ -129,14 +129,14 @@ class Player {
} }
} }
if (position.end === 0) { if (position.end === 0 && state.boardConfig.speech) {
const result = this.game.header.Result; const result = this.game.header.Result;
if (result) { if (result) {
this.speech.say( this.speech.say(
result === "1-0" result === "1-0"
? "White wins!" ? "White won!"
: result === "0-1" : result === "0-1"
? "Black wins!" ? "Black won!"
: "Draw" : "Draw"
); );
} }