I have a question about the MVC pattern. I am creating a maze game in JAVA with swing and I'm trying to use the MVC pattern with it. So far it goes well but I don't get the "rules" of MVC.
Let's say I have two models: one for creating a maze and the other one for the player.
The player get's it's location from the maze created in the maze model. You see, the player determines it's location from that maze and decides if it can move to a new location. This part I understand, But can my player model ask the maze model for the maze? or is it out of the question in MVC used in a java swing application? (interactions between models).
thanks!