Skip to content

Commit

Permalink
Update card list
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBaan committed Feb 15, 2024
1 parent e3bbe20 commit cd429d6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/it/unibo/model/impl/DevelopmentCardsImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<CardType, Integer> cards = Map.of(CardType.KNIGHT, knightCards, CardType.ROADBUILD, roadBuildCards,
CardType.YEAROFPLENTY, yearOfPlentyCards, CardType.MONOPOLY, monopolyCards, CardType.VICTORYPOINT,
victoryPointCards);*/
final Map<CardType, Integer> cards = Map.of(CardType.MONOPOLY,
victoryPointCards);
final int knightCards = 6;

final Map<CardType, Integer> 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()));
});
Expand Down

0 comments on commit cd429d6

Please sign in to comment.