This has been confusing me for the past week as I am trying to make my first actual game. It's only my 2nd year learning Java so I am really trying to learn how to program like a professional organization and how classes interact and whatnot.
I found that the MVC is generally the pattern for professional programs (although there are different ways). I've been trying to code in this pattern and have been confounded by the connections. I don't understand code-wise how to connect them but I understand the concept.
For example, in my game I have a Card class which contains all the logic for the card but I also have a CardDisplay class which contains the paint override and extends JComponent displaying the image of the card and the listeners. Should I consolidate them together or are they suppose to be separate?
Also how do I connect the view to the controller such as my View class containing the JFrame and update methods + GUI elements. Do I create a instance variable of View in my Game class? Do I Create the variable in the Main method?
Basically, I really am just trying to progress past learning the "actual language" and more of the technique and structure behind professional programs. I've been looking at the structure of Notch's Minicraft (not minecraft!) source code if that helps?