|
|
@ -15,7 +15,7 @@ public class Game { |
|
|
|
for (Player p : g.players) { |
|
|
|
int c = 0; |
|
|
|
int dice; |
|
|
|
System.out.println("Spieler " + p.toString() + " an der Reihe."); |
|
|
|
System.out.println("Spieler " + p.name + " an der Reihe."); |
|
|
|
do { |
|
|
|
int figId; |
|
|
|
dice = p.rollDice(); |
|
|
@ -32,7 +32,7 @@ public class Game { |
|
|
|
} while (g.checkDice(dice, p, c)); |
|
|
|
if(p.checkGameWin(p.figures)) { |
|
|
|
winner = p; |
|
|
|
System.out.println("Spieler " + winner.toString() + " gewinnt!"); |
|
|
|
System.out.println("Spieler " + winner.name + " gewinnt!"); |
|
|
|
exit(42); |
|
|
|
} |
|
|
|
} |
|
|
|