-
Notifications
You must be signed in to change notification settings - Fork 11
feat(plugin): refactor some and make some logic methods public again #303
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
Conversation
60fbcc2 to
883ad6b
Compare
In turn, refactor them a bit to pass fields as parameters, instead of raw coordinates and colors
One can choose to have them throw as before, or return a `MoveMistake` enum which allows for switching of the specific issue in question.
fe63a47 to
e5baeac
Compare
SKoschnicke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the following methods can be removed as they are private and not called in the class:
- getAllPossibleMoves
- getPossibleStartMoves
- getAllMoves
Everthing else looks good to me!
SKoschnicke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
|
Wieder so ein PR wo squashen einen unnötig großen commit erzeugt... Ich glaube ich muss die convention anpassen, ich bin andere arbeitsstile gewohnt ^^ |
|
Es sind ein paar kleine Änderungen und ein großer Commit. |
This shall resolve #301