package core;


public class Player {
	public void playCard(Card card, ActionType action, Player target) {
		switch (card.getType()) {
			case TAUPE1:
			case TAUPE2:
			case TAUPE3:
				this.playTaupe(target);
				break;
			case DOG1:
			case DOG2:
			case DOG3:
				this.playDog();
				break;
			default:
				switch (action) {
					case GIANT:
						this.playGiant(card);
						break;
					case FERTILIZER:
						this.playFertilizer(card);
						break;
					case HOBGOBLIN:
						this.playHobgoblin(card, target);
						break;
				}
		}
	}
	
	public void playCard(Card card, ActionType action) {
		playCard(card, action, null);
	}
	
	private void playTaupe(Player target) {
		
	}
	
	private void playDog() {
		
	}
	
	private void playGiant (Card card) {

	}
	
	private void playFertilizer (Card card) {
		
	}
	
	private void playHobgoblin (Card card, Player target) {
		
	}
}

@@ -12,30 +12,408 @@
 e;%0A%0A
-%0Apublic class Player %7B
+import java.util.Random;%0Aimport java.util.Vector;%0A%0A%0Apublic class Player %7B%0A%09private Vector%3CCard%3E cards;%0A%0A%09public Player() %7B%0A%09%09this.cards = new Vector();%0A%09%7D%0A%0A%09public void drawCard(int cardNumber) %7B%0A%09%09for (int i = 0; i %3C cardNumber; i++) %7B%0A%09%09%09CardType randomType = CardType.values()%5Bnew Random().nextInt(Card.CARD_NUMBER)%5D;%0A%09%09%09Card newCard = Card.getCard(randomType);%0A%09%09%09this.cards.add(newCard);%0A%09%09%7D%0A%09%7D%0A
 %0A%09pu
@@ -913,17 +913,16 @@
 %0A%09%09%7D%0A%09%7D%0A
-%09
 %0A%09public
@@ -999,25 +999,100 @@
 , null);%0A%09%7D%0A
-%09
+%0A%09public Card getCardById(int cardId) %7B%0A%09%09return this.cards.get(cardId);%0A%09%7D%0A
 %0A%09private vo
@@ -1117,31 +1117,28 @@
 r target) %7B%0A
-%09%09
 %0A%09%7D%0A
-%09
 %0A%09private vo
@@ -1148,31 +1148,28 @@
 playDog() %7B%0A
-%09%09
 %0A%09%7D%0A
-%09
 %0A%09private vo
@@ -1195,25 +1195,24 @@
 card) %7B%0A%0A%09%7D%0A
-%09
 %0A%09private vo
@@ -1247,15 +1247,12 @@
 ) %7B%0A
-%09%09
 %0A%09%7D%0A
-%09
 %0A%09pr
@@ -1305,16 +1305,14 @@
 rget) %7B%0A
-%09%09
 %0A%09%7D%0A%7D%0A

Add Player.cards, Player.drawCard(), player.getCardById()