How do I fix my code?

So, I have a little game, that is NOT completed. Here is a lot of stuff to do. But… I think it’s really messy. If you can. Help please. How do I improve it, or maybe fix?

(Some strings can be unbound. Because I will work on them later.)


I just think It’s really, REALLY messy. I want to fix it somehow :confused:

1 Like

There are many “hard-coded” values. Instead of using a lot of globals and remembering what data goes with each global, you should set up data structures such as an Enum, dict, or regular class.
Doing this is beneficial because data is explicitly linked/associated with what it needs, allowing you to not have to remember things, easily access data, and easily add new things.

1 Like