
public class HumanPlayer extends Player {

	
	public void HumanDrawDecision()	{
				
				System.out.println("DRAW");
				System.out.println("[d]-from the draw pile");
				System.out.println("[s]-from the discard pile");
				SavitchIn.readlnChar(controller);
				
				}//end draw method
	
	
	
	
	public void userDecide(Card cardInHand)	{
		
		int arbiter;
		char controller;
		
		HumanDrawDecision();
		
		//the following is a switch statment to let the user decide either to discard the cardinhand or replace one of the 4 hand cards
			
			switch (controller)	{			
	//discard or keep card
				
		
				//IF U PICK UP FROM THE DRAW!!
				
				case d:					
		//this keep the card for you to discard a hand card, implies that you are taking a card from the draw pile
					
					System.out.println("ahhh, we have risk taker");
					System.out.println("now what to do with your new card:");
					System.out.println("[n] if you want it to go strait to the discard");
					System.out.println("[number of the card you wish to throw away] if you want to keep ur new card and discard another");
					
					Card cardInHand = new Card();
	//hold a  card for the user to decide what to do with
					cardInHand = cardHolder; 
	//calls a(card.number) method from the card class to make card in hand 
									
			//the following is a switch statment to let the user decide either to discard the cardinhand or replace one of the 4 hand cards
					
					switch (arbiter)	{	
	//discard what?
						
						case '1':
							discard(1);
							//discards the 1 card
							deck.setElementAt(1, cardInHand);
							//this is supposed to replace the card you want to discard with the card you drew
							break;
							
						case '2':
							discard(2);
							//discards the 2 card
							deck.setElementAt(2, cardInHand);
							//this is supposed to replace the card you want to discard with the card you drew
							break;
							
						case '3':
							discard(3);
							//discards the 3 card		
							deck.setElementAt(3, cardInHand);
							//this is supposed to replace the card you want to discard with the card you drew
							break;
							
						case '4':
							discard(4);
		//discards the 4 card		
							deck.setElementAt(4, cardInHand);
							//this is supposed to replace the card you want to discard with the card you drew
							break;
							
						case 'n':
							discard(cardInHand);
							//this little dude right up here discard the card that u picked up from the draw pile, NOT THE DISCARD PILE 
							break;
							
									
	}//end sub d switch
				
								//IF U PICK UP FROM DISCARD!!
				case s:					
		//you want to take a card from the discard pile, then decide what to do with it, you have no choice but to replace one of your cards with the card inHand
					
					cardHolder = discardPile; 	
	//draws from the discard pile and puts it in the card holder
					
					switch (arbiter)	{
						
						case '1':
							discard(1);	//discards the 1 card
							deck.setElementAt(1, cardInHand); //this is supposed to replace the card you want to discard with the card you drew
							break;
							
						case '2':
							discard(2); //discards the 2 card
							deck.setElementAt(2, cardInHand);
							break;
							
						case '3':
							discard(3);	
		//discards the 3 card
							deck.setElementAt(3, cardInHand);
							break;
							
						case '4':
							discard(4);	
		//discards the 4 card
							deck.setElementAt(4, cardInHand);
							break;		
									
	}//end sub s switch	
							}//end CONTROL switch
	}//end userdecide

} //class
