From 01083ef011143eef36f8f83ecbdae8da6e948021 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Fri, 12 Jan 2018 17:55:56 +0000 Subject: Implement symmetrical hash for cards --- src/main/game/card.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/main/game/card.cpp') diff --git a/src/main/game/card.cpp b/src/main/game/card.cpp index 2f4cc08..0a05163 100644 --- a/src/main/game/card.cpp +++ b/src/main/game/card.cpp @@ -74,12 +74,3 @@ bool operator==(const card& l, const card& r) { bool operator!=(const card& l, const card& r) { return !(l == r); } - -size_t hash_value(card const& c) { - boost::hash hasher; - - auto suit_val = static_cast>(c.get_suit()); - auto raw_val = static_cast(suit_val * 13 + c.get_rank()); - - return hasher(raw_val); -} \ No newline at end of file -- cgit v1.2.1