feat: update share result emojis to distinguish failed (red) vs skipped (black) attempts

This commit is contained in:
Hördle Bot
2025-11-23 08:36:39 +01:00
parent 7795168b16
commit dc83c8372f

View File

@@ -120,9 +120,12 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
// If this was the winning guess (last one and won) // If this was the winning guess (last one and won)
if (hasWon && i === gameState.guesses.length - 1) { if (hasWon && i === gameState.guesses.length - 1) {
emojiGrid += '🟩'; emojiGrid += '🟩';
} else { } else if (gameState.guesses[i] === 'SKIPPED') {
// Wrong or skipped // Skipped
emojiGrid += '⬛'; emojiGrid += '⬛';
} else {
// Wrong guess
emojiGrid += '🟥';
} }
} else { } else {
// Unused attempts // Unused attempts