Question: python my game module One of the new techniques we used in the Spots example was what we might call model-view separation , which is
python
my game module
One of the new techniques we used in the Spots example was what we might call model-view separation, which is to say that we separated the code that manipulated our program's model from the code that manipulated our program's view. This is a fairly common technique in programs that have user interfaces, not just in games written using PyGame, so it's worth stopping to make sure you understand why we did it. Let's explore that by considering some questions about it.
- What problem does a model focus on?
- What problem does a view focus on?
- In no more than a sentence or two each, what are at least two benefits of separating the code that manipulates the model from the code that manipulates the view?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
