-
Notifications
You must be signed in to change notification settings - Fork 3
Code reorganization, better code readability, new game features #3
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
base: main
Are you sure you want to change the base?
Conversation
Hi, your repository was very helpful for a course that I am taking at the Technical University of Denmark. My group used it for a project, and made some improvements to it, so it was not a big issue to create a pull request and contribute back to the repository. Take your time to review the pull request, and hopefully you can take away a few of the good coding practices that you see. Thanks again :) |
Hey, I see a bug! This occurs when I try to change the number of players to 1 or 2:
The game does not crash on this error message; however, if I click play, there is only one player present. Also, the option to switch between 10/15 pieces per player is missing, and the buttons are somehow not responding to mouse hover. Btw the That's all the things I have for this pull request for now, but maybe I'll find some more issues or explain some more stuff later on. |
Reorganisation changes
gui/
: new package to contain GUI-related sectionscustom_bots
package tobots
game_logic/player.py
: split into separate files for human and each botGeneral code modifications
pre-commit
file to help code formattingNew features
getMovePath()
ingame_logic/game.py
gui/gui_helpers.py
.gui/gui_helpers.py
.game_logic/layout.py
, configured inmain.py
.game_logic/layout.py
, configured inmain.py
.replayLoop()
ingui/loops.py
.