Exercises


python 
  1. Add a class Triangle to ShapeFactory1.py
  2. Add a class Triangle to ShapeFactory2.py
  3. Add a new type of GameEnvironment called GnomesAndFairies to GameEnvironment.py
  4. Modify ShapeFactory2.py so that it uses an Abstract Factory to create different sets of shapes (for example, one particular type of factory object creates “thick shapes,” another creates “thin shapes,” but each factory object can create all the shapes: circles, squares, triangles etc.).
© RemiZOffAlex