Stunts Forum

ZakStunts - the Competition => General Chat - ZSC => Topic started by: afullo on February 15, 2019, 02:07:10 AM

Title: Newbie league
Post by: afullo on February 15, 2019, 02:07:10 AM
Yesterday Seeker asked about not being in the newbie league anymore, this is consistent with the 18-month period, but:


How do we have to count correctly the points? Note also that Marco joined in January 2015, but according to season standings, he took points in the newbie league until the end of 2016 (that is, for a period longer than 18 months), and FinRok joined in March 2016, while taking points in that league until the end of 2017 (also here, for more than one year and a half); in both cases, the results in the single races are correctly counted only up to 1.5 years. Maybe the latter ones make more sense...
Title: Re: Newbie league
Post by: dreadnaut on February 15, 2019, 11:00:01 PM
To be honest, I have no idea how the newbie league code works, but it seems to cover all the pipsqueaks for which...

pipsqueaks.joined + INTERVAL 18 MONTH > season.year . date('-m-04')

The code refers to the 4th day of the current month, whenever the season scores are recalculated.

I suppose that was meant to say "all the pipsqueaks who joined within 18 months from the start of this race", but races don't start on the 4th of the month anymore, so that can be wrong of up to 4 weeks. And if anything changes and we recalculate the scores for an earlier race, the set of newbie pipsqueaks could be disturbed... leading to a messed up scoreboard.

So I'll likely have to fix the date filtering, then fix the whole "recalculate for a previous race/season", then recalculate the past five seasons and hope that scoreboards don't change too much :'(
Title: Re: Newbie league
Post by: afullo on February 15, 2019, 11:19:51 PM
Hmm, I see. As for winners, Marco would step down in 2016 since its last races would not count, but there should not be other changes; more differences would arise in the podium, though.
Title: Re: Newbie league
Post by: afullo on December 16, 2019, 05:29:12 PM
These should be the right computations for the period 2014-2019. I think it would make sense to update the wiki with these, along with a brief explanation.
Title: Re: Newbie league
Post by: Duplode on December 17, 2019, 12:48:51 AM
Nice work investigating this, afullo. On a related bit of context (that you might be aware of already), IIRC the window is 18 months long so that a newbie who doesn't miss races will have at least one season with nine newbie league entries (9 races + 3 discards = a full season).
Title: Re: Newbie league
Post by: afullo on December 17, 2019, 11:03:13 AM
Thanks, Duplode. Yes, I saw that the idea was something like that; as a newbie, I raced even 19 times, since the full month of August 2015 was considered part of the period. This should be possible also with 28-days races and four hiatus weeks, even if I don't know whether you can be not considered a newbie anymore during a race, being the majority of them spanned over two calendar months (see also dreadnaut's post).
Title: Re: Newbie league
Post by: afullo on January 03, 2021, 10:46:45 PM
2020 update.
Title: Re: Newbie league
Post by: afullo on December 15, 2021, 04:24:39 PM
2021 update. This year the seasonal scoreboard and the racewise constructed one do agree.
Title: Re: Newbie league
Post by: Cas on December 15, 2021, 08:19:37 PM
Good one :)  And you're back to "ods", better than "xls"  ;D
Title: Re: Newbie league
Post by: dreadnaut on December 15, 2021, 10:56:03 PM
As part of the Amateur league work, I am rewriting most of the scoring code. Hopefully Afullo won't have to do this manually anymore.

At the same time, these tables will be essential to double check I've not messed up the old data :D