|
Square Dance Game does not really have much logic at all, it is a simple application which simply moves the square as far as possible in current direction and then changes direction based on user input, that's it. One could argue that really the program only has a View and a Controller. Main doesn't really do much else than start the application by calling run in SquareGame.
While I don't think Square Dance Game is a good example in showcasing the distinct areas of responsibility that Model, View, and Controller should have according to the pattern's theory, it still showcases the inherent principle: Controller mediates between Model and View while Model and View are not aware of each other. That's the gist of MVC I took away from learning the pattern in university.
|