-
Notifications
You must be signed in to change notification settings - Fork 52
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
Recipe coverage graph test #2030
Conversation
Looks good, but I don't really know enough about this to review it. |
I am almost tempted to create a test for each entity - that way, when an entity is added without a recipe we would know. That's what originally made me check out the test. Then I realized it is a simpler version of a recipe graph and only for devices, so I refactored it and got a few extra entities in the list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think it's weird that it says the lambda
doesn't have a recipe.
Well, it does not. (It is only used to make curry.) That's why the test that @kostmo wrote reported it. But with a recipe graph, the entities found in the world and base inventory are taken as the starting point, and everything else has to be craftable from them. So lambda is no longer reported. 🙂 |
Ha, it seems I did not fetch
|
941912b
to
81366c6
Compare
|
Thanks, @byorgey; it seems the recipe graph was not updated with the The infinite improbability drive is now properly shown as the hardest to obtain entity: |
Huh, strange, I thought I did update it a little while ago. Maybe I am thinking of something else. |
c761f99
to
9b3c18a
Compare
let yieldPairs = mapMaybe (\e -> (e ^. entityName,) <$> (e ^. entityYields)) . Map.elems $ entitiesByName emap | ||
let yieldPairs = mapMaybe (\e -> (e ^. entityName,) <$> (e ^. entityYields)) . toList $ rgAllEntities graphData | ||
mapM_ (uncurry (.->.)) (both getE <$> yieldPairs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@byorgey I think you updated the graph display to Dot, but not the levels computation.
If Dot could lay out the graph well, the levels would not even be needed. But because we have so many connections, the levels at least group together nodes in order.
Before:
After