|
|
@ -16,9 +16,9 @@ public class Game { |
|
|
|
dice = p.rollDice(); |
|
|
|
|
|
|
|
/* |
|
|
|
rolldice() |
|
|
|
= Done rolldice() |
|
|
|
--> dice(1-6) |
|
|
|
List<Integer> getUsableFigures (dice, g, p) |
|
|
|
= List<Integer> getUsableFigures (dice, g, p) |
|
|
|
--> {0,1,2,3} |
|
|
|
int choose(List<Integer> figs, p) |
|
|
|
--> 1 |
|
|
@ -49,10 +49,10 @@ public class Game { |
|
|
|
this.gb = new Gameboard(); |
|
|
|
gb.initGameboard(); |
|
|
|
players = new ArrayList<>(); |
|
|
|
players.add(new Player("Rot",0, 40, 43, 39)); |
|
|
|
players.add(new Player("Blau",10, 44, 47, 9)); |
|
|
|
players.add(new Player("Gelb",20, 48, 51, 19)); |
|
|
|
players.add(new Player("Grün",30, 52, 55, 29)); |
|
|
|
players.add(new Player("Rot",0, 40, 39)); |
|
|
|
players.add(new Player("Blau",10, 44, 9)); |
|
|
|
players.add(new Player("Gelb",20, 48, 19)); |
|
|
|
players.add(new Player("Grün",30, 52, 29)); |
|
|
|
} |
|
|
|
|
|
|
|
public boolean checkDice(int dice, Player p, int countRolls) { |
|
|
|