Final Project
This eventually lead me to a card guessing game. This part took me a LONG time! I kept making small mistakes with the define function. I would accidentally not include a tab or would accidentally include one which would make the def function at points not line up. If def wasn't aligned the code wouldn't work, this was extremely frustrating. In the first half of my code, I am putting together the deck of cards, in the second half I created the game that would use the cards.
I also had to put a lot of focus into properly separating the classes. When I wouldn't include spaces between the class bodies I would get confused and often make extra mistakes. The __init__ function was helpful in calling objects from a class directly.
I don't really know what kind of methodology was taken from those given. In order to guess the correct card two variables were needed, the number and the suit. This was not time-dependent nor was there a correlation. The number does not correlate with the suit, they are both random so the closest I could think of was multivariate analysis because of the multiple variables but this still doesn't seem right to me because bivariate is basically correlation analysis. The card is more dependent on both variables. You cannot completely know the card without the number and the suit, both are necessary.
Overall I really enjoyed this project, I feel like this really helped me understand more what I was doing as there was SO much trial and error, (youtube video help, and reading through a BUNCH of Python help websites). This also felt good using the stuff id learned through the semester and trying to put it all together to actually make sense. I understand strings now significantly more as well as classes and functions. I will definitely continue practicing Python even after this class is over!
https://github.com/rleeds12/guessing-game
Comments
Post a Comment