1 Commits

Author SHA1 Message Date
Hördle Bot
dede11d22b fix: correct plausible score calculation 2025-11-26 18:00:59 +01:00

View File

@@ -213,7 +213,7 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
props: { props: {
genre: genre || 'Global', genre: genre || 'Global',
attempts: gameState.guesses.length, attempts: gameState.guesses.length,
score: gameState.score + (correct ? 30 : 20), // Include win + year bonus score: gameState.score + (correct ? 10 : 0), // Include year bonus if correct
outcome: 'won', outcome: 'won',
year_bonus: correct ? 'correct' : 'incorrect' year_bonus: correct ? 'correct' : 'incorrect'
} }
@@ -234,7 +234,7 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
props: { props: {
genre: genre || 'Global', genre: genre || 'Global',
attempts: gameState.guesses.length, attempts: gameState.guesses.length,
score: gameState.score + 20, // Include win bonus only score: gameState.score, // Score already includes win bonus
outcome: 'won', outcome: 'won',
year_bonus: 'skipped' year_bonus: 'skipped'
} }