aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/pile.cpp
diff options
context:
space:
mode:
authorthecharlesblake2018-01-12 16:31:38 +0000
committerthecharlesblake2018-01-12 16:31:38 +0000
commit9ea820ab371c7e1c033ab912317ba6096db87caa (patch)
tree735a13b877e7a66c597485a499a5814be841773f /src/main/game/pile.cpp
parentAdd basic global_cache interface (diff)
downloadmetasol-9ea820ab371c7e1c033ab912317ba6096db87caa.tar.gz
metasol-9ea820ab371c7e1c033ab912317ba6096db87caa.zip

Add unit tests for global cache

Diffstat (limited to 'src/main/game/pile.cpp')
-rw-r--r--src/main/game/pile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/game/pile.cpp b/src/main/game/pile.cpp
index 82ae344..ad7b85e 100644
--- a/src/main/game/pile.cpp
+++ b/src/main/game/pile.cpp
@@ -12,6 +12,8 @@
using namespace std;
using namespace boost;
+pile::pile(std::vector<card> pv) : pile_vec(pv) {}
+
card pile::top_card() const {
assert(!empty());
return pile_vec.back();