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

Interactive task via IO change #396

Merged
merged 7 commits into from
Nov 26, 2024

Conversation

MasloMaslane
Copy link
Member

@MasloMaslane MasloMaslane commented Jul 10, 2024

Changes the format of interactive tasks via IO. There can be n user's solution running at once (n can be controlled by the key num_processes in config.yml), all communicating with the same checker. The solutions get as a first argument their number, starting from 0. The checker (<task id>soc.*) gets 2n+1 arguments: first is the number of processes (n) and then n pairs of file descriptors: first is the descriptor to read from stdout of i-th solution and second file descriptor is to write to stdin of the i-th solution. This format allows for creation of many interesting new tasks.

Draft because tests are missing.

Related sio2project/sioworkers#30

@MasloMaslane MasloMaslane marked this pull request as ready for review November 26, 2024 17:13
@MasloMaslane MasloMaslane merged commit 00f496b into sio2project:master Nov 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant