factory pattern quality means doing it right when no one is looking --henry ford in you started thinking about writing your own game to make sure you don' feel duped by text-only "game,let' take moment and look at drawing something on the screen in this we will touch on the basics of graphics using python we will use the pygame package as our weapon of choice we will be creating factory classes factory classes define objects that take certain set of parameters and use that to create objects of some other class we will also define abstract factory classes that serve as the template used to build these factory classes etting started in virtual environmentyou can use pip to install pygame by using this commandpip install pygame this should be fairly painless nowto get an actual window to work withgraphic_base py import pygame pygame init(screen pygame display set_mode(( )save graphic_base py and run the filepython graphic_base py blank window that is pixels wide and pixels high will pop up on your screen and immediately vanish again congratulationsyou have created your first (cwessel badenhorst badenhorstpractical python design patterns