Pretty new to Java and want to make a simple command line game that I can expand on later. My goal is to have two items combine into a new item, and I’m thinking that I need to make a class that is a recipe list and another class that is an overall item list. The part where I’m getting stuck is giving these items to a player when they get one of the recipes correctly. I’m assuming I’d need a third class to represent the inventory itself but I’m a little confused as to how I would add and remove existing items from an extend to that inventory. I’d love to create save states as well but I can come back to that later, for now I would appreciate any recommendations on making an inventory like this.
Anyone got a recommendation for how to do this or a path for me to go down to study this sort of thing?