Fix-bugs #41

Merged
zumbrseb merged 20 commits from fix-bugs into dev 2021-12-10 08:10:47 +00:00
zumbrseb commented 2021-12-09 21:17:39 +00:00 (Migrated from github.zhaw.ch)

This PR fixes random bugs I found while testing

This PR fixes random bugs I found while testing
thalmma5 (Migrated from github.zhaw.ch) reviewed 2021-12-09 22:54:58 +00:00
thalmma5 (Migrated from github.zhaw.ch) left a comment

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 the SiedlerGame class?

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 the `SiedlerGame` class?
@ -33,2 +33,3 @@
|| hasAdjacentStreet(startPoint, endPoint, owner)) && hasEdge(startPoint, endPoint)
&& getEdge(startPoint, endPoint) == null;
&& getEdge(startPoint, endPoint) == null && isCornerTouchingLand(startPoint)
&& isCornerTouchingLand(endPoint);
thalmma5 (Migrated from github.zhaw.ch) commented 2021-12-09 22:52:08 +00:00

Awesome fix! Thanks a ton for the effort

Awesome fix! Thanks a ton for the effort
thalmma5 (Migrated from github.zhaw.ch) commented 2021-12-09 22:53:24 +00:00

I'm not quite sure but isn't this sort of misplaced in a separate class when taking cohesion into account?

I'm not quite sure but isn't this sort of misplaced in a separate class when taking cohesion into account?
costajon (Migrated from github.zhaw.ch) requested changes 2021-12-09 22:57:51 +00:00
costajon (Migrated from github.zhaw.ch) commented 2021-12-09 22:56:24 +00:00
            textTerminal.println("Your inventory contains:");
```suggestion textTerminal.println("Your inventory contains:"); ```
@ -22,9 +23,21 @@ public class TradeAction extends Action {
@Override
public boolean execute() {
InventoryPrinter helper = new InventoryPrinter(getGame());
costajon (Migrated from github.zhaw.ch) commented 2021-12-09 22:55:21 +00:00
                    "The trade was not successful. You don't have enough resources to trade 4 %s for 1 %s\n",
```suggestion "The trade was not successful. You don't have enough resources to trade 4 %s for 1 %s\n", ```
zumbrseb commented 2021-12-09 23:08:53 +00:00 (Migrated from github.zhaw.ch)

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 the SiedlerGame class?

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...

> 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 the `SiedlerGame` class? 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...
zumbrseb (Migrated from github.zhaw.ch) reviewed 2021-12-09 23:09:49 +00:00
zumbrseb (Migrated from github.zhaw.ch) commented 2021-12-09 23:09:49 +00:00

absolutly, Especially the getPlayerInventory method would belong into SiedlerGame, but we aren't allowed to change the public api, so....

absolutly, Especially the getPlayerInventory method would belong into SiedlerGame, but we aren't allowed to change the public api, so....
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: SlothBusters/gruppe02-slothbusters-projekt3-catan#41
No description provided.