Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly reorganise the pelita module #836

Open
Debilski opened this issue Oct 9, 2024 · 1 comment
Open

Slightly reorganise the pelita module #836

Debilski opened this issue Oct 9, 2024 · 1 comment

Comments

@Debilski
Copy link
Member

Debilski commented Oct 9, 2024

When preparing #828 it was found that it is too easy to accidentally create a circular import structure (especially between utils.py and game.py). Part of it is caused by global variables; part of it by functions that are in use in different places; part of it because modules do (and import) more than what they should.

We should probably move the common functions and global variables to different files and also think about which parts in the modules can be decoupled.

@Debilski
Copy link
Member Author

I can take a look at this when (if) I’m renewing the network messages and exception framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant