|
|
@ -15,7 +15,7 @@ public class Game { |
|
|
|
for (Player p : g.players) { |
|
|
|
int c = 0; |
|
|
|
int dice; |
|
|
|
System.out.println("Spieler " + p.name + " an der Reihe."); |
|
|
|
System.out.println(g.printGameboard(g, p)); |
|
|
|
do { |
|
|
|
int figId; |
|
|
|
dice = p.rollDice(); |
|
|
@ -28,6 +28,8 @@ public class Game { |
|
|
|
figId = p.choose(usableFigures); |
|
|
|
} while(figId == -1); |
|
|
|
g.setFigure(figId, dice, p, g); |
|
|
|
clearScreen(); |
|
|
|
System.out.println(g.printGameboard(g, p)); |
|
|
|
} |
|
|
|
} while (g.checkDice(dice, p, c)); |
|
|
|
if(p.checkGameWin(p.figures)) { |
|
|
@ -35,6 +37,7 @@ public class Game { |
|
|
|
System.out.println("Spieler " + winner.name + " gewinnt!"); |
|
|
|
exit(42); |
|
|
|
} |
|
|
|
clearScreen(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|