aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/pile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/game/pile.cpp')
-rw-r--r--src/main/game/pile.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/game/pile.cpp b/src/main/game/pile.cpp
index 21eddc0..6d52335 100644
--- a/src/main/game/pile.cpp
+++ b/src/main/game/pile.cpp
@@ -50,3 +50,19 @@ card pile::take() {
bool operator==(const pile& a, const pile& b) {
return a.pile_vec == b.pile_vec;
}
+
+bool operator<(const pile& a, const pile& b) {
+ return a.pile_vec < b.pile_vec;
+}
+
+bool operator>(const pile& a, const pile& b) {
+ return a.pile_vec > b.pile_vec;
+}
+
+bool operator<=(const pile& a, const pile& b) {
+ return a.pile_vec <= b.pile_vec;
+}
+
+bool operator>=(const pile& a, const pile& b) {
+ return a.pile_vec >= b.pile_vec;
+}