change Method throwDice in Siedler

This commit is contained in:
schrom01 2021-12-03 07:56:38 +01:00
parent 1c90d18510
commit 2de44a1b99
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ public class Siedler {
private static void throwDice(SiedlerGame game, Parser parser) { private static void throwDice(SiedlerGame game, Parser parser) {
Random random = new Random(); 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); parser.thrownDices(thrownDices);
game.throwDice(thrownDices); game.throwDice(thrownDices);
} }