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

Question numbers #18

Open
jaspwr opened this issue Jun 16, 2024 · 3 comments
Open

Question numbers #18

jaspwr opened this issue Jun 16, 2024 · 3 comments
Assignees
Labels
feature New feature or request

Comments

@jaspwr
Copy link
Collaborator

jaspwr commented Jun 16, 2024

There should either be a specified way to order questions (i.e. by difficulty then by points then by name alphabetically) or question numbers assigned by the backend. This is useful for both displaying lists of questions in order and doing DOMjudge style scoreboards where displaying full question names is impractical and question numbers makes sense.

@jaspwr jaspwr added the feature New feature or request label Jun 16, 2024
@sunsetkookaburra
Copy link
Member

sunsetkookaburra commented Jun 22, 2024

difficulty specified as a string 01-easy, 02-medium so default sort is alphabetic;
additional sort order specified in comp.md with unnamed placed in scan-order afterwards.
allow for custom difficulties (perhaps name mapping in comp.md)

[difficulty]
01-easy = "Easy"
medium = "Medium"

@sunsetkookaburra sunsetkookaburra added this to the ProgComp 2024 milestone Jun 22, 2024
@jaspwr
Copy link
Collaborator Author

jaspwr commented Jun 22, 2024

I have a thing to sort them on the client: https://github.com/ProgSoc/FuzzJudge/blob/main/clients/fj-svelte/src/utils.ts#L35
Could be scrapped in favour on a perminent solution

@arduano
Copy link
Contributor

arduano commented Jun 22, 2024

medium = { name = "Medium", order = 2 }

@arduano arduano self-assigned this Jun 22, 2024
@sunsetkookaburra sunsetkookaburra removed this from the ProgComp 2024 milestone Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants