Browse Source

add playCard

main
fdai7920 11 months ago
parent
commit
7f6bdc9022
  1. 9
      src/main/java/de/hsfulda/onses/services/GameService.java

9
src/main/java/de/hsfulda/onses/services/GameService.java

@ -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,...)
}
}
Loading…
Cancel
Save