From 2de44a1b99bc57245ffb860c5cd67db092cbb4a4 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Fri, 3 Dec 2021 07:56:38 +0100 Subject: [PATCH] change Method throwDice in Siedler --- src/ch/zhaw/catan/Siedler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ch/zhaw/catan/Siedler.java b/src/ch/zhaw/catan/Siedler.java index f46161f..5279482 100644 --- a/src/ch/zhaw/catan/Siedler.java +++ b/src/ch/zhaw/catan/Siedler.java @@ -69,7 +69,8 @@ public class Siedler { private static void throwDice(SiedlerGame game, Parser parser) { Random random = new Random(); - int thrownDices = random.nextInt(6) + random.nextInt(6); + //sum of two integers from 0-5 + 2 --> sum of two integers from 1-6 + int thrownDices = random.nextInt(6) + random.nextInt(6) + 2; parser.thrownDices(thrownDices); game.throwDice(thrownDices); }