Skip to content

Commit

Permalink
Added support for interactive problems
Browse files Browse the repository at this point in the history
  • Loading branch information
dario2994 committed Dec 4, 2022
1 parent 0e8c245 commit 3359d23
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion p2d/generate_domjudge_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

# Generate the DOMjudge package directory of problem.
# problem = dictionary object describing a problem (as generated by
# parse_problem_from_polygon
# parse_problem_from_polygon)
# domjudge = Root directory of the DOMjudge package (initially it is empty)
# tex_dir = Directory where pdflatex should be run. It will contain all
# .tex and .pdf files (and other byproducts of running pdflatex).
Expand Down
1 change: 0 additions & 1 deletion p2d/p2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,3 @@ def main():


# TODO: Everything should be tested appropriately.
# TODO: Add the support for interactive problems.
1 change: 0 additions & 1 deletion p2d/parse_polygon_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ def pol_path(*path):
# Interactor
problem['interactor'] = None
if problem_xml.find('assets').find('interactor'):
raise NotImplemented('Interactive problems are not supported.')
logging.debug('The problem is interactive.')
problem['interactor'] = {
'source': pol_path(problem_xml.find('assets').find('interactor')
Expand Down

0 comments on commit 3359d23

Please sign in to comment.