#include #include #include #include using namespace std; int main() { Effect aid{"Aid from the Ether", "Heals an ally for 3 health"}; Effect ally{"Summon Mystic Ally", "Summon minion and gain 2 xp"}; Effect icelance{"Ice Lance", "Deals 2 damage"}; Effect ridethewind{"Ride the Wind", "Move 8 spaces"}; Card card1{aid, ally, 91}; Card const card2{icelance, ridethewind, 25}; cout << "Card1:\n" << card1 << '\n' << endl; Hand hand{}; hand.draw(card1); hand.draw(card2); hand.print(cout); // could also implement operator<<: cout << hand; cout << "card1 is less than card2: " << boolalpha << (card1 < card2) << endl; cout << "card2 is less than card1: " << boolalpha << (card2 < card1) << endl; }