|
@ -43,7 +43,6 @@ public class GameController implements Controller { |
|
|
playButton.setOnAction(e -> { |
|
|
playButton.setOnAction(e -> { |
|
|
Card cardToPlay = game.getPlayerService().getPlayerList().getFirst().getCurrentCard(); |
|
|
Card cardToPlay = game.getPlayerService().getPlayerList().getFirst().getCurrentCard(); |
|
|
if(gameService.legalMove(cardToPlay)) { |
|
|
if(gameService.legalMove(cardToPlay)) { |
|
|
System.out.println(cardToPlay.getPlayer()); |
|
|
|
|
|
if(cardToPlay.getPlayer() != null) { |
|
|
if(cardToPlay.getPlayer() != null) { |
|
|
cardToPlay.getPlayer().removeCardFromPlayerDeck(cardToPlay); |
|
|
cardToPlay.getPlayer().removeCardFromPlayerDeck(cardToPlay); |
|
|
gameService.playCard(cardToPlay); |
|
|
gameService.playCard(cardToPlay); |
|
|