Show garbage received on player elimination

- Add garbageReceived array to player objects
- Track garbage in addGarbageToPlayer() with sender name
- Include garbageReceived in getStates() output
- Update endGame() to pass garbage stats to UI
- Update showGameOver() to display garbage count per player
- Add CSS styling for eliminated players and garbage column
- Bump CSS version for cache refresh

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 02:44:39 +00:00
parent a1cbd27a71
commit e3f594e44e
5 changed files with 29 additions and 7 deletions
+10
View File
@@ -397,6 +397,16 @@ button:active {
color: #0f0;
}
#final-scores .score-item.eliminated {
border-color: #f00;
opacity: 0.7;
}
#final-scores .score-item span:last-child {
color: #888;
font-size: 0.7rem;
}
/* Game Over Overlay */
#gameover-screen {
position: fixed;