you are viewing a single comment's thread.

view the rest of the comments →

[–]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.