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

Full Recipe Generation #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Full Recipe Generation #3

wants to merge 3 commits into from

Conversation

kcovelli
Copy link

Wrote a method to generate all possible combinations of a given list of components, then check what each combination crafts into.

I just treated calculate() as a black box, so I don't know if JsIncorrectRecipes or anything else would need to be modified for it to be 100% correct.

kcovelli added 2 commits May 25, 2021 11:58
… sized list of components. It generates all possible unique recipes then uses BagOfCrafting.calculate() to obtain the id of the created item. Returns a mapping of item id to component list.
@kcovelli kcovelli marked this pull request as ready for review May 25, 2021 16:27
now properly returns all recipes for a given item
@uninterestingindividual

I don't really do any coding so if this is dumb don't bother, but if someone here has the time and is willing, if you could add an option to show every possible recipe a specific item for the current seed with the recipes lacking imputed collectibles being grayed out or something else to diffrenciate currently usable recipes from those lacking items, i don't really know how this works so i hope me just bringing forth my ideas does something of help, but if not, whoops, hopefully this is of some use :)

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.

2 participants