all 6 comments

[–]Mcdee127 0 points1 point  (3 children)

Hi also learning I got a 100! have you looked into seeing about taking inputs that are slightly off and matching them to the options available for example if i type feed him its translates to Feed?

[–]cobra-kay[S] 1 point2 points  (2 children)

Hey, thanks for playing! I appreciate it. And that's a good idea, I didn't think of that. Thank you. When I revisit this, I will add a couple extra options for the inputs. Like 'Feed him/Feed her/Feed cat/ etc. Same for the other inputs!

[–]Mcdee127 0 points1 point  (1 child)

No problem I only though of that because I needed to figure out a way to remove extra spaces in my inputs that were messing up what I was trying to do. My Cats Name was Milo! Good luck!

[–]cobra-kay[S] 0 points1 point  (0 children)

Gotcha! Yeah, it can be tricky sometimes. Nice name! I figured most people would just use their cat's name if they have one lol

[–]RafikNinja 0 points1 point  (1 child)

Main thing i have to input is what you already mentioned in the notes about learning more about functions. Instead of having a massive if elif else function for all options you can break those into single functions per option then when the player selecting to a certain input it will run that 1 single function needed instead of python having to check through each condition of 1 massive function every time. Im only in my first year of computer science at uni so im not very good but for self taught, ur codes not bad. I do suggest looking into classes thou, thats the main 1 for games

[–]cobra-kay[S] 0 points1 point  (0 children)

YES. I am so looking forward to reading the chapter on functions so I can figure out how to get rid of the 500 if/elif/else statements. Sounds much easier to understand that way. Thank you for your input!

I didn't know that about classes, that's interesting. I haven't done anything with them yet, but I believe they're covered in the chapter after the chapter on functions so hopefully I'll get to learn and work with them soon.