the prototype pattern guess lot of people first become interested in programming in some derivative of interest in games and the desire to program games sadlygames tend to be vast and complex systemsand making game that will be fun and popular is massive undertaking without any guarantees of success in the endrelatively few programmers pursue their initial interest in game programming in this we will imagine that we are indeed part of this select group of programmers base for an actual game suppose we want to write an rts (short for real-time strategy gamelike starcraftwhere you have player that controls group of characters the player needs to construct buildingsgenerate unitsand ultimately meet some sort of strategic objective let' consider one unita knight the knight is produced in building called the barracks player can have multiple such buildings in single scenario so as to create knight units more rapidly looking at this description of the unit and its interaction with the buildinga fairly obvious solution would involve defining barracks class that has generate_knight function that returns knight objectwhich is an instance of the knight class we will be implementing the following basic properties for the knight classlife speed attack power attack range weapon generating new knight instance would simply involve instantiating an object from the knight class and setting the values here is the code for doing exactly thatrts_simple py class knight(object)def __init__selflife