aboutsummaryrefslogtreecommitdiff
path: root/src/main/card.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/card.cpp')
-rw-r--r--src/main/card.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/card.cpp b/src/main/card.cpp
index 0b7c0b8..0510304 100644
--- a/src/main/card.cpp
+++ b/src/main/card.cpp
@@ -51,6 +51,10 @@ card::card(const char* c) : rank(-1), suit(-1) {
}
}
+bool operator==(const card& l, const card& r) {
+ return l.get_rank() == r.get_rank() && l.get_suit() == r.get_suit();
+}
+
int card::get_rank() const {
return rank;
}