flair icon indicating copy to clipboard operation
flair copied to clipboard

Ingredient addition math

Open tmcw opened this issue 5 years ago • 3 comments

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:

  • Find missing ingredient set for all unfeasible cocktails
  • For single-ingredient additions, filter to all single-missing-ingredient sets, and sort by incidence.

tmcw avatar Mar 27 '20 21:03 tmcw

That would be awesome!!

wooorm avatar Mar 28 '20 07:03 wooorm

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

wooorm avatar Mar 28 '20 07:03 wooorm

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.

tmcw avatar Mar 28 '20 23:03 tmcw