Frivolity for Oldest Champion Team - #425
Conversation
dumbmatter
left a comment
There was a problem hiding this comment.
"worst champion team" was probably a typo, please fix it in this PR :)
Want to do youngest championship teams in this PR too?
Another thing I noticed - this doesn't work for historical data in real player leagues, because it doesn't have avgAge computed. I should probably fix that myself, cause I can put it in the real player data generator which is not part of this repo.
I saw that all of your other frivolities, you just had "Oldest insert frivolity here" That makes sense, since you can just sort in reverse order and get the youngest champions. (Will definitely fix that typo as well) |
You can only do that if there are fewer than 100 seasons in the league, but frivolities are most interesting for very large leagues. And for the other current "Oldest" frivolities a "Youngest" wouldn't be interesting, but here it is. |
Oh ok, haha. I guess I haven't played the game long enough to realize that. I guess youngest former player sounds kinda stupid. And youngest to play in a game might also not be as interesting. I'll add the youngest championship 😄 . |
avgAgeis undefined is 0, which I don't think should happen since it should filter out any seasons with noavgAge.avgAgeis the main sortParam, but I includedwinpin the unlikely case that there is the exact sameavgAgevalue before rounding.