diff options
author | jbion <joffrey.bion@amadeus.com> | 2016-12-21 22:30:56 +0100 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2016-12-21 22:30:56 +0100 |
commit | 511dc353a0b962f88e3bffee6bee870c41bc41e2 (patch) | |
tree | a009ae040938f17520b6669b56791dc5db857e89 | |
parent | Add doc to Definition.create() to explicitly state the "no side-effect" requi... (diff) | |
download | seven-wonders-511dc353a0b962f88e3bffee6bee870c41bc41e2.tar.gz seven-wonders-511dc353a0b962f88e3bffee6bee870c41bc41e2.tar.bz2 seven-wonders-511dc353a0b962f88e3bffee6bee870c41bc41e2.zip |
Fix number of Guild cards used in Decks
-rw-r--r-- | src/main/java/org/luxons/sevenwonders/game/data/definitions/DecksDefinition.java | 2 |
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); } } |