From 067152f57ced18c5f706144909345125754e8664 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Mon, 8 Jan 2018 19:02:36 +0000 Subject: Add game logic for built pile (AA) and refactor --- src/main/game/card.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/game/card.cpp') diff --git a/src/main/game/card.cpp b/src/main/game/card.cpp index 74bdc31..4d9342d 100644 --- a/src/main/game/card.cpp +++ b/src/main/game/card.cpp @@ -69,6 +69,10 @@ bool operator==(const card& l, const card& r) { return l.get_rank() == r.get_rank() && l.get_suit() == r.get_suit(); } +bool operator!=(const card& l, const card& r) { + return !(l == r); +} + size_t hash_value(card const& c) { boost::hash hasher; auto raw_val = static_cast( -- cgit v1.2.1