Fix: Hard difficulty now generates 6-letter words in Daily Challenge mode#4
Merged
eccentriccoder01 merged 1 commit intoeccentriccoder01:mainfrom Oct 19, 2025
Conversation
…mode - Updated fetchWord() function to use getDailyWord(length) instead of hardcoded 5-letter words - Fixes issue where Hard difficulty (6 letters) was incorrectly showing 5-letter words - Ensures all difficulty levels work correctly in Daily Challenge mode Resolves: [Issue #X] (replace X with your issue number)
Contributor
Author
|
is there any thing wrong?? its now fixed ? can u give any suggestions @eccentriccoder01 |
Owner
|
@skvinderr Great work! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐛 Bug Fix
Problem
The Hard difficulty level in Daily Challenge mode was incorrectly generating 5-letter words instead of the expected 6-letter words. This inconsistency affected the difficulty progression and user experience.
Root Cause
The issue was in the
fetchWord()function where the Daily Challenge mode was using a hardcoded word list with 5-letter words regardless of the selected difficulty level. The function wasn't properly utilizing thegetDailyWord(length)function that respects the difficulty settings.Solution
fetchWord()function to properly usegetDailyWord(length)instead of hardcoded word selectionChanges Made
script.jsgetDailyWord(length)function callclearInterval(timer)call that was redundantTesting
Screenshots/Evidence
The difficulty settings are now properly mapped: