tmcw / flair

Cocktail browser interface and dataset
https://oldfashioned.tech
MIT License
87 stars 3 forks source link

Ingredient addition math #36

Open tmcw opened 4 years ago

tmcw commented 4 years ago

Wishlist feature:

Given a set of ingredients you have, Old Fashioned should be able to suggest which additional ingredient (or 2 ingredients, or 3…) will yield the highest number of additional recipe possibilities. Say you have everything except for Angostura bitters, it should be able to say "Buy angostura bitters to be make 10 more cocktails."

Doing this for a single ingredient is simple. I think the logic might be:

wooorm commented 4 years ago

That would be awesome!!

wooorm commented 4 years ago

Maybe too hard, or maybe wouldn’t yield good results, but I’m guessing that also: buy both X and Y, as the combination will allow 10 more cocktails, would be interesting in this calculation

tmcw commented 4 years ago

Totally, that'd probably be way more useful. I haven't found a solution to that that isn't brute-force and I think the perf of the brute force approach might be crazy.