|
|
@ -1,6 +1,8 @@ |
|
|
|
package de.hsfulda.onses.services; |
|
|
|
|
|
|
|
import de.hsfulda.onses.models.Card; |
|
|
|
import de.hsfulda.onses.models.Game; |
|
|
|
import de.hsfulda.onses.models.Player; |
|
|
|
|
|
|
|
public class GameService { |
|
|
|
private final Game game; |
|
|
@ -11,4 +13,11 @@ public class GameService { |
|
|
|
this(new Game()); |
|
|
|
} |
|
|
|
|
|
|
|
public void playCard(Player player, Card card) |
|
|
|
{ |
|
|
|
// add lastPlayedCard back to drawCardDeck |
|
|
|
game.setLastPlayedCard(card); |
|
|
|
// check for special rules (draw, colorchoose, skip,...) |
|
|
|
|
|
|
|
} |
|
|
|
} |