Here's a markdown-formatted task description for an AI coding assistant:
Rewrite the existing Jeopardy game implementation in index.html to support dynamic game field generation with the following key requirements:
- Implement a game board generation mechanism that:
- Randomly selects 6 categories from a larger pool
- Randomly selects questions for each category
- Create a
QuestionPool
class or object with methods for:- Randomly selecting categories
- Generating a game board
- Ensuring no duplicate questions
- Add error handling for question selection
const gameDataGenerator = {
categoryPool: [ /* Expanded list of categories */ ],
questionPool: { /* Organized questions by category and difficulty */ },
generateGameBoard() { /* Returns a randomized 6-category game board */ }
};
- Game board is randomly generated each time
- All 6 categories are unique
- Each category has 5 questions at different point levels
- Implement a seed-based random generation for potential reproducibility
- Add metadata to questions (tags, sources, difficulty)
- Create a mechanism to prevent recent question repetition
- Any necessary HTML modifications
- Brief documentation explaining the new data structure
Note: Preserve the original Russian-language questions and game theme.