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

Add support for custom judging functions. #36

Open
xtevenx opened this issue Feb 14, 2020 · 0 comments
Open

Add support for custom judging functions. #36

xtevenx opened this issue Feb 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@xtevenx
Copy link
Owner

xtevenx commented Feb 14, 2020

Some problems require a judging function made specifically for that problem. For example: "find a prime factor of a number". In the example, any of the factors of the number will work so we cannot do a simple string comparison like the current judges.

A possible implementation is to add another parameter in the problem specifications file which contains the Python code for the judge function and load it with exec when we are judging. To signify that there is a non-standard judge function, the judge parameter in the problems specifications file can be set to something like custom.

@xtevenx xtevenx added the enhancement New feature or request label Feb 14, 2020
@xtevenx xtevenx self-assigned this Mar 1, 2020
@xtevenx xtevenx removed their assignment Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant