|
@ -104,7 +104,12 @@ public class Game { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public int setFigure(int figId, int dice, Player p, Game g) { |
|
|
public int setFigure(int figId, int dice, Player p, Game g) { |
|
|
int preCalculated = (p.figures.get(figId).getPosition() + dice) % 40; |
|
|
|
|
|
|
|
|
int preCalculated; |
|
|
|
|
|
if(p.figures.get(figId).getPosition() == -1) { |
|
|
|
|
|
preCalculated = p.startPos; |
|
|
|
|
|
} else { |
|
|
|
|
|
preCalculated = (p.figures.get(figId).getPosition() + dice) % 40; |
|
|
|
|
|
} |
|
|
int kicked = 0; |
|
|
int kicked = 0; |
|
|
for(Player currentPlayer : g.players) { |
|
|
for(Player currentPlayer : g.players) { |
|
|
for(Figure currentFigure : currentPlayer.figures) { |
|
|
for(Figure currentFigure : currentPlayer.figures) { |
|
|