AthirK / Quiz-app-with-agila-methods

0 stars 1 forks source link

Menu OPTIONAL Randomizer implementation #18

Open Zeldoz opened 3 days ago

Zeldoz commented 3 days ago

Functional description

be able to choose from the menu as an option to choose a "Random" category of a quiz to play through. Which randomize questions combined from all the active quiz categories.

Justification

Some prefer to have different questions each run rather than be stuck with one type of category.

Suggested implementation

Impact

This allows you to randomize questions mixing categories together from the implemented categories.

Code location - potentially in the quizz section of the code

Implementation - yet to be implemented.

Doing so we will execute the following steps:

utilize lists or arrays to store questions for categories import randomizer ( ex java.util.Random) track questions that are already asked combine different categories together. Two categories (category1Questions and category2Questions) store questions. An askedQuestions list tracks already-asked questions.

The Random class selects a random question index from the chosen category.

Dynamic Question Pool: Each question is removed from its category list once asked, ensuring

Interaction: Users can select a category or exit the program.

-[ ]Randomizer should run in the background -[ ]Randomizer should allow random selection of questions