feat: update share result emojis to distinguish failed (red) vs skipped (black) attempts
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user