|
|
@ -46,6 +46,7 @@ public class GameService { |
|
|
|
// Abfrage Farbe |
|
|
|
Card.Color color = Card.Color.BLUE; //Vorübergehend Blau |
|
|
|
game.changeLastPlayedCardColor(color); |
|
|
|
nextPlayer(); |
|
|
|
} |
|
|
|
// Draw |
|
|
|
if (card.getValue() == Card.Value.DRAWTWO) { |
|
|
@ -53,6 +54,15 @@ public class GameService { |
|
|
|
drawCard(2); |
|
|
|
nextPlayer(); |
|
|
|
} |
|
|
|
// ChooseDraw |
|
|
|
if (card.getValue() == Card.Value.CHOOSEDRAW) { |
|
|
|
// Abfrage Farbe |
|
|
|
Card.Color color = Card.Color.BLUE; //Vorübergehend Blau |
|
|
|
game.changeLastPlayedCardColor(color); |
|
|
|
nextPlayer(); |
|
|
|
drawCard(4); |
|
|
|
nextPlayer(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public boolean legalMove(Player player, Card card) |
|
|
|