vpbasile / trivial-endeavor

A trivia game using The Trivia API by Will Fry
https://vpbasile.github.io/trivial-endeavor/
0 stars 0 forks source link

Shouldn't query the API for every question #17

Open vpbasile opened 2 years ago

vpbasile commented 2 years ago

Only query the api at the beginning of the game and when the player requests a category that we've run out of questions for

vpbasile commented 2 years ago

For a number of players P, you need at least P questions for each category. Get them at the beginning of the game. Then, when a player asks for a question, if it's not there, ask for only that category.