change in Main Method
This commit is contained in:
@@ -19,7 +19,7 @@ public class Siedler {
|
||||
throwDice(game, parser);
|
||||
diceThrown = true;
|
||||
}
|
||||
parser.displayPlayerInfo(game.getCurrentPlayerResource(),1);
|
||||
parser.displayPlayerInfo(game.getCurrentPlayerResource(),game.getWinPoints().get(game.getCurrentPlayerFaction()));
|
||||
switch (parser.getAction()) {
|
||||
case NEXTPLAYER:
|
||||
Config.Faction winner = game.getWinner();
|
||||
@@ -64,6 +64,7 @@ public class Siedler {
|
||||
Random random = new Random();
|
||||
//sum of two integers from 0-5 + 2 --> sum of two integers from 1-6
|
||||
int thrownDices = random.nextInt(6) + random.nextInt(6) + 2;
|
||||
//todo check if 7
|
||||
parser.thrownDices(thrownDices);
|
||||
game.throwDice(thrownDices);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user