pc2ccs / pc2v9

Version 9 of the PC^2 Programming Contest Control System
Eclipse Public License 2.0
47 stars 23 forks source link

Add support for interactive problems #538

Closed lane55 closed 1 year ago

lane55 commented 2 years ago

Describe the issue:

Add support for interactive problems.

TODO - find specification reference for interactive problems

In the pretest contest ( https://github.com/icpcsysops/ccsconfig-dhaka/tree/master/contests/pretest) there is a 'interactive' identifier identifying that the problem is interactive (?)

config/accessdenied/problem.yaml: validation: custom interactive config/boredombuster/problem.yaml: validation: custom interactive

To Reproduce:

Expected behavior:

Actual behavior:

Environment:

Log Info:

Screenshots:

Additional context:

wf 2022 pretest had a interactive problem

johnbrvc commented 2 years ago

The following "specification" (and I use the term lightly) mentions interactive validators and how they should work. https://icpc.io/problem-package-format/spec/output_validators?highlight=interactive#invocation It doesn't go into too many specifics.

When this is ultimately implemented it's going to be a neat trick to have interactive validators work under Windows due to the piping of stdin and stdout that has to be set up. There will be different code for Linux and Windows (and maybe even other versions of Unix).

clevengr commented 1 year ago

JohnB and JohnC had some discussions about this issue; I'm recording them here for the record and to help support further work on this issue (and in particular, trying to get going on it in order to be able to use it for WF Sharm). Among the topics discussed were: