I have the annoying game on my mobile that I hate but strangely keep playing to pass the time… (it’s called brave frontier)
A part of it involves the collecting of materials as part of a crafting mini-game.
I’ve been thinking about writing a small app where I simply enter the materials I have and the app calculates what items I can craft (via recipies)
The problem thought is that these items can then become materials for other items and so forth, so there is an element of recursion going on.
I initially thought that I could used Java’s TreeNode’s but I’m not so sure anymore.
Any ideas/comments/suggestions on how to tackle this?