change Method throwDice in Siedler
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user