aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/game_state.h
diff options
context:
space:
mode:
authorthecharlesblake2018-01-12 19:03:23 +0000
committerthecharlesblake2018-01-12 19:03:23 +0000
commitadd27468ed6ee09a9df6f885becc6b0428f666bf (patch)
tree18c0f37f59fdb724de61fdf5ca51f4e07abb5c44 /src/main/game/game_state.h
parentImplement hash for piles (diff)
downloadmetasol-add27468ed6ee09a9df6f885becc6b0428f666bf.tar.gz
metasol-add27468ed6ee09a9df6f885becc6b0428f666bf.zip

Implement symmetrical hash for pile vector

Diffstat (limited to 'src/main/game/game_state.h')
-rw-r--r--src/main/game/game_state.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/game/game_state.h b/src/main/game/game_state.h
index 323646f..8a41398 100644
--- a/src/main/game/game_state.h
+++ b/src/main/game/game_state.h
@@ -45,12 +45,11 @@ public:
const std::vector<pile>& get_data() const;
friend bool operator==(const game_state&, const game_state&);
+ friend std::ostream& operator<< (std::ostream&, const game_state&);
- friend std::size_t hash_value(game_state const&);
+ friend std::size_t hash_value(card const&);
friend std::size_t hash_value(std::vector<pile> const&);
- friend std::ostream& operator<< (std::ostream&, const game_state&);
-
private:
static std::vector<card> gen_shuffled_deck(int, card::rank_t, bool);