Add random graph trivia questions #1495
Labels
status: approved
The issue has received a core developer's approval
type: feature
Relating to the functionality of the application.
Description
Created from discussion in #1491.
Me:
@wookie184 :
Reasoning
These questions would be fun and cool.
Proposed Implementation
Each of these would have an associated function for validating a given answer.
Functionality exists to send images already, but it would need to be slightly modified, since the current code only supports sending via URLs read from the config.
The "proper" way to generate the images would be via
graphviz
. We would usepygraphviz
to interface with agraphviz
installed in the container. Would require modifying the Dockerfile to installgraphviz
.Additional Details
Performance
Should be fine: graph sizes will be small, furthermore we don't need to precompute answers for computationally hard questions, we only need to validate.
p != np
or something.Alternative impls
networkx
to generate LaTeX that usestikz
, and use the existing LaTeX api that we use for the.latex
command. (kinda reasonable)LaTeX
ourselves. (sounds really annoying)These two should work, the LaTeX api we use supports
tikz
.Would you like to implement this yourself?
The text was updated successfully, but these errors were encountered: