Skip to content

Commit 425c516

Browse files
committed
Done recommended changes
1 parent 5e1ae1f commit 425c516

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

client/js/bluff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ window.addEventListener('DOMContentLoaded', () => {
3434
})
3535
activatePlayer(game) // Activating one player to start the game
3636
// Alerting which player will start the game
37-
let message = 'Player ' + start + ' will start.'
37+
let message = game.players[game.turn - 1].playerName + ' will start.'
3838
window.alert(message)
3939
})

client/js/check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function check(game, currentRank, centralStack, initialNoOfCards, finalNoOfCards
1212
}
1313
}
1414
const noOfCardsMoved = finalNoOfCards - initialNoOfCards // Calculating the number of cards added in this chance
15-
const msg = 'Player ' + game.turn + ' added ' + noOfCardsMoved + ' card(s) to the stack.'
15+
const msg = game.players[game.turn - 1].playerName + ' added ' + noOfCardsMoved + ' card(s) to the stack.'
1616
window.alert(msg)
1717
// If value of flag is equal to the number of cards added in this turn
1818
// Set record to not bluffed

0 commit comments

Comments
 (0)