diff --git a/src/ch/zhaw/catan/SiedlerGame.java b/src/ch/zhaw/catan/SiedlerGame.java index 5f87c31..36f2804 100644 --- a/src/ch/zhaw/catan/SiedlerGame.java +++ b/src/ch/zhaw/catan/SiedlerGame.java @@ -216,6 +216,22 @@ public class SiedlerGame { return returnMap; } + private void handleDiceThrow7() { + for(Player player : allPlayers) { + HashMap resources = player.getResources(); + int countResources = 0; + for(Resource resource : resources.keySet()){ + countResources += resources.get(resource); + } + if(countResources > 7){ + int newCountResources = countResources / 2; + ArrayList resourceArrayList = new ArrayList<>(); + //for(Resource resource : ) todo complete + } + } + } + + /** * Builds a settlement at the specified position on the board. * @@ -450,7 +466,7 @@ public class SiedlerGame { } } if(getLongestRoadFaction() == getCurrentPlayerFaction()){ - winPoints = winPoints + 2; + winPoints += 2; } return winPoints; }