myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests | README | LICENSE

commit 7bafe598f3fa118c49a69607743487a801652827
parent ac4cc563f1ea2fc0c4680862fd6c7e837b0fb242
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun, 11 Aug 2024 11:58:05 +0200

doc: scoring and ranking logic

Diffstat:
MREADME.md | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -21,7 +21,17 @@ export VITE_APP_SUPABASE_KEY= npm run dev ``` -## Databas Schema +## Scoring and ranking logic + +The scoring and ranking logic is defined in `utils.js` inside the `rankByHeat` +function. Following ranking options can be selected. Rank by: +* Start number: Rank by athlete start number +* Best heat: Rank by best heat (and by least worst if "best" is equally good) +* Worst heat: Ranks worst heats only (no further comparison by best if equally + bad) +* Total: Ranks by sum of all selected heats + +## Database Schema The Supabase schema is stored in the `schema` folder and can be created using plain psql.