jackconryan / DartsElo

Creating an Elo system for our local Darts matches/tournaments.
0 stars 1 forks source link

Doubles matches and normal matches must be consolidated #3

Open jackconryan opened 1 year ago

jackconryan commented 1 year ago

Will need to change format of matches being stored in csv to allow doubles to be stored I propose

Winner A, Winner B, Score 1, Score 2, Loser A, Loser B, Threw First
Ricky,     Daniel,     4,      1,        Zak ,   Eoghan,    Ricky
Ricky,           ,     3,      2,      Eoghan,         ,    Ricky

For singles matches only winner A and loser A will be filled while Winner B and Loser B will be null. A simple check in the calc_prev_matches function for whether or not they are populated will determine whether match_result() or doubles_match_result() is used

LukeBogdanovic commented 1 year ago

You could also just use default values

jackconryan commented 1 year ago

You could also just use default values

great idea I'll take it into consideration