Skip to content

Fix Spanish conjugation validation and expand verb database#1

Draft
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
fix-conjugation-validation
Draft

Fix Spanish conjugation validation and expand verb database#1
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
fix-conjugation-validation

Conversation

@google-labs-jules

Copy link
Copy Markdown

This commit fixes a bug where the Spanish conjugation game would not correctly validate all correct user answers.

The root cause of the issue was that the game relied on a hardcoded, incomplete list of correct phrases.

The fix involves the following changes:

  • All verb data has been consolidated into a single, structured file, gameData.js, which now acts as a comprehensive "database" for conjugations and endings.
  • The game's validation logic in script.js has been rewritten to use the data from gameData.js, ensuring that all correct conjugations are recognized.
  • The logic for populating the game's wheels has also been updated to source its data from gameData.js, ensuring consistency.
  • The redundant and incomplete correctPhrases.js file has been removed.

This commit fixes a bug where the Spanish conjugation game would not correctly validate all correct user answers.

The root cause of the issue was that the game relied on a hardcoded, incomplete list of correct phrases.

The fix involves the following changes:
- All verb data has been consolidated into a single, structured file, `gameData.js`, which now acts as a comprehensive "database" for conjugations and endings.
- The game's validation logic in `script.js` has been rewritten to use the data from `gameData.js`, ensuring that all correct conjugations are recognized.
- The logic for populating the game's wheels has also been updated to source its data from `gameData.js`, ensuring consistency.
- The redundant and incomplete `correctPhrases.js` file has been removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants