From cd429d6fa3882a92572edc5fbef0edb8f3f171fd Mon Sep 17 00:00:00 2001 From: Alex Guerrini Date: Thu, 15 Feb 2024 22:22:11 +0100 Subject: [PATCH] Update card list --- .../it/unibo/model/impl/DevelopmentCardsImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/it/unibo/model/impl/DevelopmentCardsImpl.java b/src/main/java/it/unibo/model/impl/DevelopmentCardsImpl.java index 4ab94db..1486e93 100644 --- a/src/main/java/it/unibo/model/impl/DevelopmentCardsImpl.java +++ b/src/main/java/it/unibo/model/impl/DevelopmentCardsImpl.java @@ -21,15 +21,15 @@ public final class DevelopmentCardsImpl implements DevelopmentCards { * Constructor of DevelopmentCardsImpl. */ public DevelopmentCardsImpl() { - final int knightCards = 15; - final int yearOfPlentyCards = 2; + final int freeSettlementCards = 5; + final int freeRoadCards = 5; final int monopolyCards = 2; final int victoryPointCards = 2; - /*final Map cards = Map.of(CardType.KNIGHT, knightCards, CardType.ROADBUILD, roadBuildCards, - CardType.YEAROFPLENTY, yearOfPlentyCards, CardType.MONOPOLY, monopolyCards, CardType.VICTORYPOINT, - victoryPointCards);*/ - final Map cards = Map.of(CardType.MONOPOLY, - victoryPointCards); + final int knightCards = 6; + + final Map cards = Map.of(CardType.MONOPOLY, monopolyCards, CardType.KNIGHT, knightCards, + CardType.FREE_ROAD, freeRoadCards, CardType.FREE_SETTLEMENT, freeSettlementCards, + CardType.VICTORY_POINT, victoryPointCards); cards.forEach((card, amount) -> { deck.addAll(IntStream.range(0, amount).mapToObj(i -> card).collect(Collectors.toList())); });