I’m 4.5 weeks into my teaching myself how to code (5 nights + weekend days a week)!!
Recently, I posted my first python program, a Trivia Game about my life and I sought feedback, via tumblr, from friends with coding experience. (Thanks Harry! Thanks Naveen! Thanks Nitin! Thanks Matt!). I was told that my code could be a little less redundant and more efficient. I hadnt taken the lessons on OOP yet but when I did, I started to understand what they all were referring to. So, I’m posting my “new” code again. This Trivia program is now broken into four different files with a different Class in each. One of the files is the “Engine” that makes all the other files work and is the file you will run.
For the other three classes, each file represents a “door” you open as a part of the trivia game.
Give it a try and shoot me your feedback! Would love to hear it. Be bruuuuutally honest. I’m still learning a ton, here. :)
File 1: Game_Engine (this is the file to run in Terminal)
File 2: Game_4sq_Door
File 3: Game_NYC_Door
File 4: Game_Marriage_Door
loading…