ProgSoc / FuzzJudge

Randomised input Judging server for ProgComp.
GNU Affero General Public License v3.0
2 stars 0 forks source link

Question numbers #18

Open jaspwr opened 3 months ago

jaspwr commented 3 months ago

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.

sunsetkookaburra commented 3 months ago

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"
jaspwr commented 3 months ago

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 commented 3 months ago

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