#include "CardT.h" using namespace std; void CardT::Randomize() { suite = RandomEnum(SUITE_COUNT); value = RandomEnum(VALUE_COUNT); } bool CardT::operator == (const CardT & other) const{ return suite == other.suite and value == other.value; } bool CardT::operator < (const CardT & other) const { return value < other.value; } ValueT CardT::Value() const { return value; } SuiteT CardT::Suite() const { return suite; } string CardT::ToString() const { return EnumToString(value, VALUE_NAMES ) + " of " + EnumToString(suite, SUITE_NAMES) + "s"; } ostream & operator << (ostream & s, const CardT & c){ s << c.ToString(); return s; }