aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/pile.h
diff options
context:
space:
mode:
authorthecharlesblake2018-04-04 12:51:48 +0100
committerthecharlesblake2018-04-04 12:51:48 +0100
commit669a438205ad4eba5b7c100b10312ff30bb5118e (patch)
tree32c64dbea0058a0d89dbb8c34a683ce37b52eaaa /src/main/game/pile.h
parentAdd card tests (diff)
downloadmetasol-669a438205ad4eba5b7c100b10312ff30bb5118e.tar.gz
metasol-669a438205ad4eba5b7c100b10312ff30bb5118e.zip

Add pile tests

Diffstat (limited to 'src/main/game/pile.h')
-rw-r--r--src/main/game/pile.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/game/pile.h b/src/main/game/pile.h
index 654f5be..d86ea37 100644
--- a/src/main/game/pile.h
+++ b/src/main/game/pile.h
@@ -33,15 +33,17 @@ public:
card operator[] (size_type) const;
friend bool operator==(const pile&, const pile&);
+ friend bool operator!=(const pile&, const pile&);
friend bool operator<(const pile&, const pile&);
friend bool operator>(const pile&, const pile&);
friend bool operator<=(const pile&, const pile&);
friend bool operator>=(const pile&, const pile&);
-private:
+
// Modify
void place(card);
card take();
+private:
// Underlying vector
std::vector<card> pile_vec;
};