-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
Description
🐛 Bug Description
When selecting "Hard" difficulty (which should generate 6-letter words) while in "Daily Challenge" mode, the game generates 5-letter words instead.
📋 Steps to Reproduce
- Open the TextTangle game
- Ensure "Daily Challenge" is ON
- Select "Hard" difficulty (6 Letters)
- Click "Launch Game"
- Observe that the game shows "Length: 5" instead of "Length: 6"
🎯 Expected Behavior
- Hard difficulty should generate 6-letter words
- Game should display "Length: 6"
🔍 Actual Behavior
- Hard difficulty generates 5-letter words
- Game displays "Length: 5"
🛠️ Root Cause
The fetchWord() function in script.js ignores the length parameter in daily mode and always uses a hardcoded 5-letter word list.
💡 Proposed Solution
Replace the hardcoded daily word generation with the existing getDailyWord(length) function that respects the difficulty setting.
🖼️ Screenshots
🌐 Environment
- Browser: [Your browser]
- OS: Windows
- Device: Desktop
Reactions are currently unavailable