Add more trivia questions #1491
Labels
status: approved
The issue has received a core developer's approval
type: feature
Relating to the functionality of the application.
Description
Add more trivia questions.
Using a format i can copy and paste into a python script to generate the json.
list[tuple[str, list[str], Optional[str]]] = [(question, [answer1, answer2], hint)]
Python
CS
A question I thought would be fun is generating a random directed graph and asking people to find the shortest path between two randomly selected nodes. Variations could be solving TSP, and so on. Would need to send images though, which would require some modifications to a lot of code. Additionally, we would need to bring in another dependency like networkx or graphviz. Maybe this would be turned into another issue/PR? I'm not sure what the protocol for that is, would like thoughts on that from maintainer people.
Another question I thought would be interesting is: "give a string matching this regular expression". And randomly generate regexes. Regex crosswords, even.
Reasoning
More trivia questions good.
Proposed Implementation
Modify the json file for static questions. For the dynamic question we would implement this as a function that generates a graph and associated image.
Would you like to implement this yourself?
The text was updated successfully, but these errors were encountered: