Fix-bugs #41
No reviewers
Labels
No labels
bug
ci
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SlothBusters/gruppe02-slothbusters-projekt3-catan#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-bugs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes random bugs I found while testing
Thanks for the effort!
This PR looks good to me.
However - is it really a good idea to have a separate
SiedlerGameHelper
class instead of placing its methods directly into theSiedlerGame
class?@ -33,2 +33,3 @@
|| hasAdjacentStreet(startPoint, endPoint, owner)) && hasEdge(startPoint, endPoint)
&& getEdge(startPoint, endPoint) == null;
&& getEdge(startPoint, endPoint) == null && isCornerTouchingLand(startPoint)
&& isCornerTouchingLand(endPoint);
Awesome fix! Thanks a ton for the effort
I'm not quite sure but isn't this sort of misplaced in a separate class when taking cohesion into account?
@ -22,9 +23,21 @@ public class TradeAction extends Action {
@Override
public boolean execute() {
InventoryPrinter helper = new InventoryPrinter(getGame());
I agree 100% with you, but as far as I know, we aren't allowed to change the public api of SiedlerGame. So...this is the work around...
absolutly, Especially the getPlayerInventory method would belong into SiedlerGame, but we aren't allowed to change the public api, so....