From e41825785f11b0899243fb82416952ba6c5a15a7 Mon Sep 17 00:00:00 2001 From: Amit <42430868+Amit30swgoh@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:26:21 +0300 Subject: [PATCH] Update sounds.js --- 26.9-14.00/sounds.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/26.9-14.00/sounds.js b/26.9-14.00/sounds.js index 772b630..45f0c05 100644 --- a/26.9-14.00/sounds.js +++ b/26.9-14.00/sounds.js @@ -7,12 +7,12 @@ const sounds = { win: new Audio('assets/sounds/win.mp3'), // Play the sound corresponding to the given type - playSound: function (type) { + playSound(type) { const soundMap = { - 'dice': this.diceRoll, - 'move': this.pieceMove, - 'invalid': this.invalidMove, - 'win': this.win + dice: this.diceRoll, + move: this.pieceMove, + invalid: this.invalidMove, + win: this.win }; // Play the appropriate sound if the type exists