Skip to content

Commit

Permalink
Update sounds.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit30swgoh authored Sep 26, 2024
1 parent fdfb7a1 commit e418257
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 26.9-14.00/sounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e418257

Please sign in to comment.