//file name ard.h
#include <iostream>
enum suits{diamond,club,heart,spade};
class Card  
{

public:
   
	Card();
	Card(suits,int);
	int getRank() const;

	suits getSuit() const;

	virtual ~Card();
protected:
	int rank;
	suits suit;

	friend std::ostream& operator<<(std::ostream&,const Card&);
	friend bool operator<(const Card&,const Card&);
	friend bool operator>(const Card&,const Card&);
	friend bool operator==(const Card&,const Card&);
};

class Deck  
{
public:
	Deck();
	virtual ~Deck();
	void shuffle();
	bool isEmpty() const;
    Card draw();
	void add(Card);
	int totalCards() const;
protected:
	Card cards[52];
	int topCard;
};

class Player  
{
public:
	Player();
	Player(Deck&);
	virtual ~Player();
	void addPoints(int);
	
    bool lose() const;
	bool haveCard() const;
	Card drawCard(Deck&);
	void addCard(Deck&);
	void removeCards(Deck&);
	int totalCards() const;

protected:
	Card myCards[52];
	int myScore;
	int top;

};

