Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support interactive checkers #54

Open
MartinXPN opened this issue Mar 31, 2022 · 1 comment
Open

Support interactive checkers #54

MartinXPN opened this issue Mar 31, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers priority/mid

Comments

@MartinXPN
Copy link
Owner

MartinXPN commented Mar 31, 2022

Sometimes the checkers interact with the program through stdin/stdout.
This might be a good feature for competitive programming style problems.

Requested by Armen Andreasyan.

@MartinXPN
Copy link
Owner Author

We should probably have 2 threads to read from the subprocesses. And there are 3 processes:

  1. The main process (Coderunner) which is responsible for the communication between the other two
  2. The checker subprocess, which should implement the grader API
  3. Submission subprocess, which runs the submitted code

We can read the outputs of the submission as soon as it flushes to stdout:

for line in p.stdout:
    out += line

@MartinXPN MartinXPN removed the status in LambdaJudge Nov 23, 2023
@MartinXPN MartinXPN added the good first issue Good for newcomers label Nov 23, 2023
@MartinXPN MartinXPN changed the title Support for interactive checkers Support interactive checkers Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers priority/mid
Projects
Status: No status
Development

No branches or pull requests

1 participant