In this video we take the code from my “How to Program a Game (in Python)” tutorial and refactor it to be of a more professional quality. To do this we abstract out similar parts of the code into their own classes & files. Once the new code is written, we go through some examples of how we can extend its functionality in fun ways. We make a couple more difficult levels of the game which is made very easy by the new code architecture. The final product is a lot more similar to code you would write as a full time software developer at a company like Google, Facebook, etc…

Source code for Game (original & refactored):

https://github.com/KeithGalli/Basic-P…

Subscribe : https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw

#python

Professional Code Refactor! (Cleaning Python Code & Rewriting it to use Classes)
2.90 GEEK