farisfaikar / Number-Game

Number Game is a game where players solve a 4-digit secret number combination using clever deductions!
MIT License
17 stars 9 forks source link

Reformat global variables #15

Closed farisfaikar closed 3 years ago

farisfaikar commented 3 years ago

At the moment, global variables are messy as hell and getting variables from across the files is confusing and painful. Tidy it up somehow

farisfaikar commented 3 years ago

Turns out you'll need to import globalvar, so if you want to change the variables inside globalvar, you'll need to do it like this, for example; globalvar.x = 6. So it's kinda fixed... for now. Maybe there's some issue with this method that I overlooked... maybe it's the best method