summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2016-12-21 22:30:56 +0100
committerjbion <joffrey.bion@amadeus.com>2016-12-21 22:30:56 +0100
commit511dc353a0b962f88e3bffee6bee870c41bc41e2 (patch)
treea009ae040938f17520b6669b56791dc5db857e89 /src
parentAdd doc to Definition.create() to explicitly state the "no side-effect" requi... (diff)
downloadseven-wonders-511dc353a0b962f88e3bffee6bee870c41bc41e2.tar.gz
seven-wonders-511dc353a0b962f88e3bffee6bee870c41bc41e2.tar.bz2
seven-wonders-511dc353a0b962f88e3bffee6bee870c41bc41e2.zip
Fix number of Guild cards used in Decks
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/data/definitions/DecksDefinition.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/data/definitions/DecksDefinition.java b/src/main/java/org/luxons/sevenwonders/game/data/definitions/DecksDefinition.java
index aaa44475..4a7888a0 100644
--- a/src/main/java/org/luxons/sevenwonders/game/data/definitions/DecksDefinition.java
+++ b/src/main/java/org/luxons/sevenwonders/game/data/definitions/DecksDefinition.java
@@ -72,6 +72,6 @@ public class DecksDefinition implements Definition<Decks> {
private static List<Card> createGuildCards(List<CardDefinition> defs, Settings settings) {
List<Card> guild = defs.stream().map((def) -> def.create(settings)).collect(Collectors.toList());
Collections.shuffle(guild, settings.getRandom());
- return guild.subList(0, settings.getNbPlayers());
+ return guild.subList(0, settings.getNbPlayers() + 2);
}
}
bgstack15