Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically generate Leaderboard list using paths from kolmafia #211

Open
horrible-little-slime opened this issue May 11, 2024 · 0 comments

Comments

@horrible-little-slime
Copy link
Contributor

Looking at our existing data, there's exactly one non-path leaderboard floating in the middle of the traditional path leaderboards: batfellow, at 27. Which is to say that for every special challenge path, we can determine its leaderboard number as follows:

  1. Calculate the path index. This is different from the path ID because of things like OnlyFamiiars, which caused us to skip a path ID. I'm going to define the index here as essentially its position in Kolmafia's Path.all(), but only counting the special challenge paths. so 0 for BHY, 1 for wotsf, 2 for trendy, etc
  2. If that index is less than 18, add 9 to it; otherwise, add 10
  3. That should do it!

a recent non-challengepath leaderboard, elf gratitude, was for a while marked as leaderboard 50, but is currently 900. If and when TPTB add other leaderboards in the middle of the path ones, we can update this algorithm.

NOTE:
It turns out this doesn't actually work for the order of Path.all(), because Path.all() seems to be sorted weirdly:

js Path.all()

Returned: aggregate path [48]
0 => Actually Ed the Undying
1 => Grey You
2 => Bees Hate You

But we can sort Path.all() by path id, and achieve the same order.

@horrible-little-slime horrible-little-slime changed the title Automatically generate Leaderboard list using paths from kolmafia.us Automatically generate Leaderboard list using paths from kolmafia May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant