dgets / nightMiner

Halite III Bot - rewriting Halite III bot from scratch with better project structure plans
6 stars 1 forks source link

Import globals the right way #25

Closed dgets closed 5 years ago

dgets commented 5 years ago

There's way too many instances of importing the global constants with the full object chain in all of the files. Ffs, just import things the right way and save all of that typing & clutter in the code...

dgets commented 5 years ago

Maybe what I thought was there doesn't exist... Not totally sure right now. I've shortened the string that needs to be typed now, at least, with from . import myglobals as glo. It's not exactly what I was looking for, but it helps a little bit, at least.