|
@ -73,7 +73,7 @@ public class Game { |
|
|
*/ |
|
|
*/ |
|
|
public boolean checkDice(int dice, Player p, int countRolls, Game g) { |
|
|
public boolean checkDice(int dice, Player p, int countRolls, Game g) { |
|
|
int figuresInBase = p.checkFigureInBase(p.figures); |
|
|
int figuresInBase = p.checkFigureInBase(p.figures); |
|
|
if(countRolls >= 3) return false; |
|
|
|
|
|
|
|
|
if(countRolls >= 3) return dice == 6; |
|
|
if(figuresInBase == 4) { |
|
|
if(figuresInBase == 4) { |
|
|
return true; |
|
|
return true; |
|
|
} else if (figuresInBase < 4) { |
|
|
} else if (figuresInBase < 4) { |
|
|