change Method throwDice in Siedler
This commit is contained in:
parent
1c90d18510
commit
2de44a1b99
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue