import java.io.*;
import java.util.*;

/**********************************************************************
* This class represents a player with a hand in the game of bridge.
*
* @author Jonathan Herman
* @version 1
**********************************************************************/
// Elizabeth Adams
// Date: 3/06/07
// PA 2
// Section: 2

public class Player
{
	private String name;
	private BridgeHand hand;

	/**
	* This constructor creates a Player with the given name and hand.
	*
	* @param name The name of the player.
	* @param hand The hand of the player.
	*/	
	public Player (String name, BridgeHand hand)
	{
		this.name = name;
		this.hand = hand;
	}
	
	/**
	* This method returns the name of the player.
	*
	* @return The player's name.
	*/
	public String getName()
	{
		return name;
	}
	
	/** 
	* This method returns the BridgeHand of the player.
	*
	* @return The player's hand.
	*/
	public BridgeHand getHand()
	{
		return hand;
	}
	
	/**
	* This method returns the player's name and hand.
	*
	* @return The player's name and hand.
	*/
	public String toString()
	{
		return hand.toString();
	}
	
} // end Player class