|
@ -16,9 +16,9 @@ public class Game { |
|
|
dice = p.rollDice(); |
|
|
dice = p.rollDice(); |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
rolldice() |
|
|
|
|
|
|
|
|
= Done rolldice() |
|
|
--> dice(1-6) |
|
|
--> dice(1-6) |
|
|
List<Integer> getUsableFigures (dice, g, p) |
|
|
|
|
|
|
|
|
= List<Integer> getUsableFigures (dice, g, p) |
|
|
--> {0,1,2,3} |
|
|
--> {0,1,2,3} |
|
|
int choose(List<Integer> figs, p) |
|
|
int choose(List<Integer> figs, p) |
|
|
--> 1 |
|
|
--> 1 |
|
@ -49,10 +49,10 @@ public class Game { |
|
|
this.gb = new Gameboard(); |
|
|
this.gb = new Gameboard(); |
|
|
gb.initGameboard(); |
|
|
gb.initGameboard(); |
|
|
players = new ArrayList<>(); |
|
|
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) { |
|
|
public boolean checkDice(int dice, Player p, int countRolls) { |
|
|