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

add fuzzy mods utility method #164

Merged
merged 15 commits into from
Jan 23, 2021
Merged

add fuzzy mods utility method #164

merged 15 commits into from
Jan 23, 2021

Conversation

tybug
Copy link
Contributor

@tybug tybug commented Dec 22, 2020

went back and forth on the api design for this one...I considered adding a new mod class that would provide a set of ModCombinations instead of just one, so you would do something like

mods = FuzzyMods(Mod.HD, [Mod.DT, Mod.EZ])
m = Map(221777, span="1-10", mods=mods)

and have m be the top 10 for each of HD, HDDT, HDEZ, and HDDTEZ.

But that dirtied the waters far too much. I was trying to hide too much from the consumers when the right way to go about this is provide a method that creates these "fuzzy" mod sets for you, and then you have total control over what to do with them (someone may want to specify different spans for different mods, for instance).

@tybug tybug merged commit a73c2a1 into master Jan 23, 2021
@tybug tybug deleted the fuzzy-mods branch January 23, 2021 20:02
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

Successfully merging this pull request may close these issues.

None yet

1 participant