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.

  1. What problem does a model focus on?
  2. What problem does a view focus on?
  3. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!