Closed TKanX closed 3 weeks ago
https://github.com/tridecco/game-client-web/commit/3fded5dd919a888cd362711f39760310bdc37307
updatePlayerPieces
method to update the pieces count for each player.https://github.com/tridecco/game-client-web/commit/acdf562b5897e864d8032d3cc7e865f3659a5310
updatePlayerPieces
method in GameUI.@tedhyu
https://github.com/tridecco/game-client-web/commit/3f45fbad8b8e0dfe65f011707f1bf711092a8736
showPlayerPiecesOnHover
in GameUI to display the count of pieces below the player's avatar on hover.https://github.com/tridecco/game-client-web/commit/ded629d29b203bdc29bfec224727c26c99670866
pieceCountMap
in GameUI to correctly assign the index from the pieces
array instead of the pieceCountMap
.reduce
function to include the index i
and store it in the pieceCountMap
.forEach
loop to use the correct index from pieceCountMap
.@tedhyu
Description:
In the game, a piece count display should be added below each player's avatar. The count will show the number of pieces the player owns, with each piece type displayed in its corresponding color using a gradient effect.
Requirements: