Duosmium / duosmium

A Science Olympiad tournament results archive.
https://www.duosmium.org
MIT License
10 stars 8 forks source link

Turn events on/off #7

Closed tctree333 closed 2 years ago

tctree333 commented 2 years ago

It would be cool if there could be an option to display scores/ranks with different combinations of events. With this feature, you will be able to see what would happen if trials were counted, builds were/were not, etc.

The way I see this happening with the current code structure would probably be to add client JS (in assets/results_template/script.js) to compute the score (by adding up the points for each counted event) and then rank teams (see sciolyff-js for their ranking algorithm?). An event selection UI could be inside the filters modal.

Potential issues/gotchas I can think of right now:

Alternative strategies: We could try running an interpreter in client JS but then we would need a way to template the computed stuff in and by that point it might be easier to grab some JS framework like Svelte or something which will likely be a pain to implement. (See slinkity)