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

Modify Runner.Program.cs to support year selection. #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RedRabel99
Copy link

Add option to select a year by providing it as the first argument.

Possible arguments and what they do:

  • No arguments - Solve last problem.
  • all - Solve all problems.
  • <year> - Solve last problem of given year.
  • <year> all - Solve all problems of given year.
  • <year> <problem1> ... <problemN> - Solve given problems of given year.

Replace assemblies list with dictionary and GetAssemblies method to get all assemblies or only the ones of the type of the given year.

The reason I suggest this change is because I wanted to solve a specific problem, but the runner ended up solving all problems of the given index across all years in the repository.

@eduherminio eduherminio self-requested a review July 27, 2024 23:59
@eduherminio
Copy link
Owner

The idea looks good to me, and therefore might worth including it in this example/template.
I'm quite busy right now, but I'll have a proper look in a few days.

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.

2 participants