|
@ -18,6 +18,9 @@ public class Game { |
|
|
return lastPlayedCard; |
|
|
return lastPlayedCard; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void changeLastPlayedCardColor(Card.Color color) { |
|
|
|
|
|
lastPlayedCard.setColor(color); |
|
|
|
|
|
} |
|
|
public Game setLastPlayedCard(Card lastPlayedCard) { |
|
|
public Game setLastPlayedCard(Card lastPlayedCard) { |
|
|
this.lastPlayedCard = lastPlayedCard; |
|
|
this.lastPlayedCard = lastPlayedCard; |
|
|
return this; |
|
|
return this; |
|
|