Final Project

 






I have always been a guessing game person. I personally love 20 questions. I have been recently playing a game daily where you have to guess the word and it lets you know how close or far you are using numbers. So each word is worth a number and you want to find number 1, the closest words to it are supposed to be related but the list was made up using AI so sometimes it doesn't make any sense. My next goal is to make a word guessing game or a 20 questions type of game. The more complicated the game is the more code, I could clearly see this from just doing a number guessing game to doing a card guessing game. This is going to take me a lot longer to do, but this final project I think help set me up to be able to make more games in the future.

I started off my final project with wanting to do a guessing game. I originally thought of a number guessing game. This was my first attempt but then I realized I wanted to add more to make it more interesting. I was going to use hints like hot and cold but higher and lower made more sense in the end.


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

Popular posts from this blog

Module #3 Assigment

Module #4 Assignment

Module # 5 assignment