You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2021. It is now read-only.
* It will have to grow and shrink as the game progresses.
* Again insertion is only to one end of the chain.
*
* A template class will have to created for Chain being parametric in the type of card. In this project, we will instantiate Chainfor the corresponding bean card.
* Suggestion: we can use a std::vector.
*/
template<class T>
class Chain {
public:
/*Constructor*/
Chain(istream&, const CardFactory*);
/*Adds cards to the Chain*/
Chain<T>& operator+=(Card*);
/*Sells the chain*/
int sell();
/*Getter for the chain.*/
vector<T> getChain() { return chain_cards; }
/*Destructor*/
~Chain() {};
/* Prints the Card name and the number of the card in the chain with the cards first letter.*/